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 awk command used for?
Name the various commands that are used for the user information in unix.
Who command in unix operating system?
What is command substitution?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
What is sed awk grep?
What is merge command in unix?
Which Command is Used for temprary switch User?
what are processor execution levels and priorities?
which command is used to change group?
What is the difference between pipe and xargs?
How to check the flavor of UNIX?