What UNIX command will control the default file permissions
when files are created?

Answers were Sorted based on User's Feedback



What UNIX command will control the default file permissions when files are created?..

Answer / indrajit bhaga / manoj jayswal

"umask <filename>" command is use to see default file
permissions or creat default file permissions.

Is This Answer Correct ?    18 Yes 1 No

What UNIX command will control the default file permissions when files are created?..

Answer / aks

for this purpose we need to use umask command...
as by default every file has default permissions of 666
and any directory have the dafault ermission of 777...

syntax: $ umask [umask options]
as it works with octal method only so
1 for execute
2 for write
4 for read
example:
$ umask
using umask alone will allow u to see the default permisions..

Is This Answer Correct ?    5 Yes 1 No

What UNIX command will control the default file permissions when files are created?..

Answer / mohammed

umask

Is This Answer Correct ?    0 Yes 0 No

What UNIX command will control the default file permissions when files are created?..

Answer / swapna

"chmod" command will control the default file permissions
when files are created.

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Unix Commands Interview Questions

Why is grep called grep?

0 Answers  


Write a command that will display files in the current directory, in a colored, long format.

0 Answers  


What is time_t?

0 Answers  


How can you see the command line history?

0 Answers  


Which command is used to find whether the system is 32 bit or 64 bit?

0 Answers  






What is the general format of unix command syntax?

0 Answers  


in UNIX ,What is the command to view contents of a large error log file?

7 Answers  


What does the “echo” command do?

0 Answers  


what is kernel?

6 Answers  


what are the uses of filters?

3 Answers  


What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?

6 Answers   Deloitte, Polaris,


distinguish between paging and swapping?

3 Answers   Infosys,


Categories