Calculate resulting file and directory permissions from a Linux umask value, inspect numeric and symbolic outputs, use reverse lookup for target modes, and review live previews, permission cuts, bit-level breakdowns, 3-digit and 4-digit notation, and shareable URLs.
Live calculation, no page reload, reverse lookup, and shareable URL updates.
Copy ready-to-paste snippets for a user shell or a system-wide profile.
# ~/.bashrc umask 022
# /etc/profile umask 022
File and directory output, ls -l previews, bit-level breakdown, and the permission-cut matrix.
Colored cells show which permission bits the current umask removes.
umask 022 removes permissions from the default creation modes. Files start from 0666 and directories start from 0777, so the same mask produces different final results.
Set the final permission target and the calculator returns the required umask.
Common umask values with ready-to-apply examples for files, directories, and typical usage.
| Umask | Files | Dirs | Use case | |
|---|---|---|---|---|
| 022 | 644 | 755 | Default Linux | |
| 002 | 664 | 775 | Collaborative | |
| 027 | 640 | 750 | Moderate security | |
| 077 | 600 | 700 | Maximum privacy | |
| 007 | 660 | 770 | Owner + group full | |
| 0022 | 644 | 755 | 4-digit padded form |
Translate final permissions into chmod notation.
Need to convert a final permission value like 755 or rwxr-xr-x into chmod notation?
Open chmod CalculatorThe same mask gives different file and directory results because the starting modes are different.
Files usually start from 0666.
Directories usually start from 0777.
022 usually becomes 644 for files and 755 for directories.