Answer Posted / rakesh arora
umask is to set the default directory and file access
restriction set during it creation.
For Example if Umask is 033( means 000011011 ) then
directory permission will be its complement
so default dir permission is 111100100 ( means 744)
now,AND dir permission with 110110110 (666) so it comes to
and file permission is 110100100 (644)
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How to print all array elements and their respective indexes?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is the use of a shebang line?
Is powershell a bash?
What is the first line in a shell script?
What is a batch file used for?
Explain about return code?
How do I open the shell in cmd?
Is scripting and coding the same thing?
What is shell and terminal?
Explain about "s" permission bit in a file?
How to check if the previous command was run successfully?
What shell is bin sh?
How to find all the files modified in less than 3 days and save the record in a text file?
What are zombie processes?