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
What is the use of sed command in unix?
What is the use of egrep command in unix?
How do I run a bash script?
What is the use of awk command in unix?
What is a command and examples?
Write a command to kill the last background job?
Why is grep called grep?
What is the significance of the 'tee' command?
Who command in unix?
What does #!/ Bin sh do?
What is the functionality of a top command?
What is awk command used for?
Explain command to view process running?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How does the system know where one command ends and another begins?