Four octal digits, nine letters
Calculate chmod permissions
chmod talks in octal and in letters. This page shows both for the same bits, including the extra digit for setuid, setgid, and the sticky bit.
755 is rwxr-xr-x. The leading zero in 0755 is the special-bit digit and means none of those bits are set. 2755 sets setgid and, because group execute is on, the letter is s rather than x. A special bit without execute is shown as S or T. Type three or four octal digits, or toggle the boxes. The page does not change a file on disk.
The conversion stays in this tab. No file mode is changed.
This tool runs in your browser. Turn on JavaScript to use it.
A typical directory mode
The owner can write. Everyone else can read and enter.
- Octal
- 0755
- Letters
- rwxr-xr-x
How to use it
- 1Type an octal mode, or toggle the boxes.
- 2Read the letters and the four-digit form.
- 3Copy the form your command expects.
Good to know
- This does not run chmod.
- S and T mean the special bit is on without execute.
- The leading digit is omitted by people who only type 755.
Questions
What is the first digit of 0755?
It is the special-bit digit. Zero means setuid, setgid, and sticky are off.
Why is there an s instead of an x?
Setuid or setgid is on, and execute is also on. Without execute the letter would be S.
Will this change a file?
No. It only translates the number and the letters.
Related tools
- Convert binary, octal, decimal, and hex
255, 0xFF, and 11111111 are one integer written three ways. This page keeps that integer exact and shows the other spellings beside the field you edit.
- Explain a cron expression
Cron is five fields. This page tells you what they select and computes the next five matches in this device's local time.
- Calculate an IPv4 subnet
A prefix says how many leading bits are the network. This page applies that mask to an IPv4 address and lists the addresses at the ends of the block.