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 ctrl d?
What are reported commands?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
What do chgrp command do?
Which command will print your home directory on screen?
Who wrote grep?
How to identify whether a file is normal file or directory?
distinguish between physical addresses and logical address?
What are the differences among a system call, a library function, and a unix command?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is the difference between pipe and xargs?
What is the difference between udp and tcp?