What UNIX command will control the default file permissions
when files are created?
Answers were Sorted based on User's Feedback
Answer / indrajit bhaga / manoj jayswal
"umask <filename>" command is use to see default file
permissions or creat default file permissions.
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / 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 |
what is the difference between npar and vpar in HP-UX?
How do you move or rename a file or directory?
What does mkdir up2date; touch outdated up2date do?
How to open a Database using Unix Command Please Do Reply
What is the command to find hidden files in the current directory?
How to remove a crontab file?
What is the command to find maximum memory taking process on the server?
What are the commands in UNIX to list the files in a Directory?
What is "type" command in unix?what is the functionality??
What is $0 bash?
What does this command do? Cat food 1 > kitty
to list a particular line in the file