chmod calculator
Click permissions or type 755, get the rwx notation and a chmod command.
- Category
- For developers
- Price
- free
The tool starts in your browser.
Everything is calculated in your browser. Nothing you type is sent to our server.
How to use it in three steps
The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.
Tick permissions or type a number, such as 755.
Read the rwx notation.
Copy the ready chmod command.
chmod 755 for a script, step by step
Each of the three digits is a sum of three permissions, separately for the owner, the group and others. The tool gives the same mode in both notations. The result is computed by the same function the tool at the top of the page uses, every time the page is shown.
You enter
- Mode
- 755
- File
- script.sh
Three digits
- u
- Owner: 7 = 4 + 2 + 1 (read, write, execute)
- g
- Group: 5 = 4 + 1 (read, execute)
- o
- Others: 5 = 4 + 1 (read, execute)
Read is 4, write 2, execute 1. A digit is their sum.
The rwx form
- ls -l
- -rwxr-xr-x
A letter or a dash for each permission, three per party. The leading dash means an ordinary file, a directory would have d.
Symbolic form
- chmod
- u=rwx,g=rx,o=rx
chmod also takes letters: u is the owner, g the group, o others.
Commands
- Command:
chmod 755 script.sh - Command, symbolic:
chmod u=rwx,g=rx,o=rx script.sh
Questions
Related tools
The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.
Missing a tool you need?
Tell us what you want to calculate or generate. We will tell you whether a tool is enough or an integration in your system fits better.