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
Explain command to show the space allocation of files?
What are the general commands in using unix os for a beginner?
Explain command to view process running?
Is command prompt unix?
What is the general format of unix command syntax?
What does find command return in unix?
Does cp command overwrite files?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What happens when we execute a unix command?
What is updatedb?
Which unix command to make a new directory?
Which command will print your home directory on screen?
What is the nmap command?
Explain ‘library functions’ with respect to unix commands?