umask Calculator for Linux & macOS
See what permissions new files and folders get under any umask, then open the result in the chmod calculator.
Help shape umask Calculator for Linux & macOS
The bug you just noticed will fade in 3 minutes. The feature idea will vanish after your next tab switch. Crazy peps don't suffer silently.
Frequently Asked Questions
New files start at 666 and directories at 777; umask removes bits. 022 gives 644 files and 755 directories.
022 for personal machines, 002 for shared group projects, and 077 when files should be private by default.
Run umask 027 in a shell, add it to ~/.bashrc or ~/.zshrc, or set UMask= in a systemd unit.
No. It only affects files and folders created afterwards — use chmod for existing ones.