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 chmod -x command removes execute permission for all users (owner, group, and others). This is useful when you want to prevent a file from being executed or a directory from being searched. It's often used for security purposes, such as disabling scripts or preventing access to certain directories. For example, 'chmod -x myscript.sh' would make the script non-executable.