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 can we use grep command in unix?

863


how to sort the content of the file based on numeric values

1525


Is grep faster than awk?

756


What do chmod, chown, chgrp commands do?

922


What do know about tee command and its usage?

870


How to find $ai_serual resolved path by using unix

1285


Why is awk called awk?

793


What is sed awk grep?

832


Enumerate some of the most commonly used network commands in unix?

872


How do I find previous commands in unix?

837


What is awk command used for?

797


What is used to type command?

772


How do I run a whois command?

855


What does #!/ Bin sh do?

785


What is the first character of the output in ls l command?

889