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 |
Why is grep called grep?
Write a command that will display files in the current directory, in a colored, long format.
What is time_t?
How can you see the command line history?
Which command is used to find whether the system is 32 bit or 64 bit?
What is the general format of unix command syntax?
in UNIX ,What is the command to view contents of a large error log file?
What does the “echo” command do?
what is kernel?
what are the uses of filters?
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?
distinguish between paging and swapping?