UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: ulimitChapter 4
The Bourne Shell and Korn Shell
Next: Reference: unalias
 

umask

umask [nnn]
umask [-S] [mask]

Display file creation mask or set file creation mask to octal value nnn. The file creation mask determines which permission bits are turned off (e.g., umask 002 produces rw-rw-r--). See the entry in Chapter 2 for examples.

The second form is specific to ksh93. A symbolic mask is permissions to keep.

Option

-S

Print the current mask using symbolic notation. ksh93 only.


Previous: Reference: ulimitUNIX in a Nutshell: System V EditionNext: Reference: unalias
Reference: ulimitBook IndexReference: unalias

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System