Name

umask

Synopsis

                  umask [options] [nnn]

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--).

Options

-p

Display mask within a umask command so that a caller can read and execute it.

-S

Display umask symbolically rather than in octal.

Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.