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 Online(STM) and offline diagnostics in HP-UX?
What are the differences among a system call, a library function, and a unix command?
Where can I get the free download of Unix by Yeswant Kanetkar?
How do I delete files from command prompt?
in UNIX ,What is the command to view contents of a large error log file?
Will rm -r* removes hidden files?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
What is the difference between pipe and xargs?
how to sort the content of the file based on numeric values
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
what do you understand bythe term 'de-mountable volumes'?