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 does shell scripting work?
Why is the use of shell script?
What is a program shell?
Why is a script important?
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.
How would you compare the strings in a shell script?
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?
What is the difference between break and continue commands?
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.
How do I stop script errors?
What is bash coding?
What does debug script mean?
When should shell programming/scripting not be used?
Why are shell scripts used?
How do I start a shell script?