what is "umask"?

Answer Posted / narendrasairam

If any file possess all the read,write and execute
permissions means, its said to have permission set "777".
umask is a command which displays or sets the file mode
creation mask.

Means, any created file is masked with the permission set
given by umask command.

For instance, if the umask is "033" the default file
permissions will be 777-033 i.e., "744" just as file
permissions in above Balaji's answer.

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of .sh file?

608


What does it mean to debug a script?

573


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

560


What shell is bin sh?

534


Why is shell scripting important?

576






Given a file find the count of lines containing the word "abc".

961


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

533


Differentiate between ‘ and ” quotes.

615


How do you debug a script?

567


How important is shell scripting?

545


How will you emulate wc –l using awk?

913


Explain about "s" permission bit in a file?

617


What is bash shell command?

562


What is the difference between bash and shell?

643


What language is bash written in?

563