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 |
Which command will you use to change the permissions on file?
how to find largest file?
14 Answers HCL, Microsoft, Thomson Reuters,
What is the pipe command?
what is the command to get help on a UNIX terminal?
Using unix command how to display no of records in oracle?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
How do I clear my terminal history?
What is pipe command in unix?
what is the difference between npar and vpar in HP-UX?
Is ‘du’ a command? If so, what is its use?
What does the “echo” command do?
What do chmod command do?