Your files stay on your device

umask calculator

See what a umask does before you set it: the bits it clears, and the file (0666) and directory (0777) modes that come out. A umask can only remove bits, never grant them.

umask bits
Classreadwriteexec
How umask works
  • chmod and umask are different tools: chmod sets bits on an existing path, umask masks bits at creation time: this page is the mask, the chmod calculator is the set.
Nothing in yet

Paste, drop, or type to begin. Everything stays on this device.

0666 & ~umask for files · 0777 & ~umask for directories