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 |
In UNIX, what is the command to kill a process?
What is the command to find hidden files in the current directory?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
What is the behavioural difference between cmp and diff commands?
Which mode is used for allowing file write,read and append mode?
How do you change your account's password?
How to rename files and folders?
what is the difference between npar and vpar in HP-UX?
in unix echo is used for
10 Answers BFL, BirlaSoft, Patni,
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated...
What is grep in bash?
Can a process kill itself in UNIX/or in its various versions?