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

What language is bash?

566


Given a file find the count of lines containing the word "abc".

1120


What is bash coding?

578


How to get the first line from a file using just the terminal?

686


is this growing field and what is average package in this?

1957






What is the use of a shebang line?

701


What does echo $0 do?

655


How do I run a shell script in powershell?

628


How will you connect to a database server from linux?

628


How to get the 3rd element/column from each line from a file?

783


What is subshell?

603


Is cmd a shell?

679


What does echo mean in scripting?

679


How to write a function?

676


What is sed in shell script?

653