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

How many unix commands are there?

618


What is the use of finger command?

591


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

757


What happens when we execute a unix command?

593


What is the comma to display different lines that are found when compare two files?

591






What is command statement?

539


What is a command and examples?

575


Why is awk called awk?

573


How do I search a whole word in vim?

685


Give the command for finding the current date.

573


Describe the usage and functionality of the command rm –r * in unix?

818


what is the advaantage of each user having its own copy of the shell?

2028


What is the difference between awk and grep?

555


What is the use of awk command in unix?

573


What is awk command used for?

596