What UNIX command will control the default file permissions
when files are created?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is $0 bash?

922


Name the various commands that are used for the user information in unix.

827


What does the “echo” command do?

876


What is grep short for?

783


Name the general commands in using unix os for a beginner?

847


Why is it called grep?

785


What is grep r?

827


What is the general format of unix command syntax?

1431


What is s and g in sed command?

840


What are awk commands?

848


What is the command to view process running?

846


What does the metacharacter mean?

839


How do I use grep to search for a file?

813


What are grep patterns?

807


Write a command to kill the last background job?

830