🧀 Learn Linux

Advanced · Permissions and Links

umask: Set new file permission mask

Put in free practice

Syntax

umask [three-digit octal]

Examples

umask 077

Usage and sandbox support

The basic permissions of ordinary files are 666, and the directory permissions are 777, and then remove the bits specified by the mask.

Hands-on exercises

Full documentation ↗

Related commands