Chmod Calculator
Calculate Unix/Linux file permissions in octal and symbolic notation.
| Role | Read (4) | Write (2) | Execute (1) | Value |
|---|---|---|---|---|
| owner | 6 | |||
| group | 4 | |||
| other | 4 |
Result
Octal
644Symbolic
-rw-r--r--chmod 644 filenamechmod u=rw,g=r,o=r filenameCommon Presets
Permission Reference
| Value | Permissions | Description |
|---|---|---|
| 0 | --- | No permissions |
| 1 | --x | Execute only |
| 2 | -w- | Write only |
| 3 | -wx | Write and execute |
| 4 | r-- | Read only |
| 5 | r-x | Read and execute |
| 6 | rw- | Read and write |
| 7 | rwx | Full permissions |
What is chmod?
chmod (change mode) is a Unix/Linux command used to change file permissions. Permissions determine who can read, write, or execute a file.
Permission Types
- Read (r, 4) - View file contents or list directory
- Write (w, 2) - Modify file or add/remove files in directory
- Execute (x, 1) - Run file as program or access directory
User Classes
- Owner (u) - The file's owner
- Group (g) - Users in the file's group
- Other (o) - All other users