What UNIX command will control the default file permissions
when files are created?
Answer Posted / aks
for this purpose we need to use umask command...
as by default every file has default permissions of 666
and any directory have the dafault ermission of 777...
syntax: $ umask [umask options]
as it works with octal method only so
1 for execute
2 for write
4 for read
example:
$ umask
using umask alone will allow u to see the default permisions..
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How many unix commands are there?
What is the use of finger command?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What happens when we execute a unix command?
What is the comma to display different lines that are found when compare two files?
What is command statement?
What is a command and examples?
Why is awk called awk?
How do I search a whole word in vim?
Give the command for finding the current date.
Describe the usage and functionality of the command rm –r * in unix?
what is the advaantage of each user having its own copy of the shell?
What is the difference between awk and grep?
What is the use of awk command in unix?
What is awk command used for?