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 does shell scripting work?

629


Why is the use of shell script?

552


What is a program shell?

580


Why is a script important?

574


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.

2234






How would you compare the strings in a shell script?

553


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

644


What is the difference between break and continue commands?

581


Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

1713


How do I stop script errors?

583


What is bash coding?

507


What does debug script mean?

559


When should shell programming/scripting not be used?

603


Why are shell scripts used?

630


How do I start a shell script?

583