Permissions and Ownership

umask

Shows or sets default permission filtering.

umask controls which permission bits are removed when new files and directories are created.

Syntax
umask [mode]

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Show current umask
umask

Prints the active mask for the shell.

Use private defaults
umask 077

Makes newly created files and directories private to the owner.

umask Command
FieldDetails
Commandumask
CategoryPermissions and Ownership
Primary useShows or sets default permission filtering.
Syntaxumask [mode]