Easily calculate and convert chmod permissions between Numeric (e.g. 777), Symbolic (e.g. +x), and RWX notations (e.g. rw-r--r--).
Check any permission box or input any Chmod options to get instant calculation results !
r w x | |||
---|---|---|---|
4 2 1 | |||
Decimal | Calculation | Symbolic | Description |
0 | 0 + 0 + 0 | - - - | none |
1 | 0 + 0 + 1 | - - x | execute only |
2 | 0 + 2 + 0 | - w - | write only |
3 | 0 + 2 + 1 | - w x | write and execute |
4 | 4 + 0 + 0 | r - - | read only |
5 | 4 + 0 + 1 | r - x | read and execute |
6 | 4 + 2 + 0 | r w - | read and write |
7 | 4 + 2 + 1 | r w x | read, write, and execute |
The recursive option in chmod (often used as chmod -R) applies the specified permissions to the directory and all of its contents, including subdirectories and files within them. This is particularly useful when you need to change permissions for an entire directory structure. For example, 'chmod -R 755 /var/www' would give read, write, and execute permissions to the owner and read and execute permissions to everyone else for the /var/www directory and all its contents.