what is "umask"?

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


Please Help Members By Posting Answers For Below Questions

How to print all array elements and their respective indexes?

511


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.

2230


What is the use of a shebang line?

621


Is powershell a bash?

590


What is the first line in a shell script?

557






What is a batch file used for?

564


Explain about return code?

633


How do I open the shell in cmd?

529


Is scripting and coding the same thing?

566


What is shell and terminal?

576


Explain about "s" permission bit in a file?

617


How to check if the previous command was run successfully?

597


What shell is bin sh?

534


How to find all the files modified in less than 3 days and save the record in a text file?

613


What are zombie processes?

571