Octal to symbolic

Digit reference

DigitSymbolicPermissions
0---none
1--xexecute
2-w-write
3-wxwrite, execute
4r--read
5r-xread, execute
6rw-read, write
7rwxread, write, execute

The leading digit

BitNameShown as
4setuids with user execute/search; S without it
2setgids with group execute/search; S without it
1stickyt with other execute/search; T without it

Interpretation

This converter displays the nine permission characters, without the file-type prefix shown by ls. For directories, execute means search/traversal. Permission bits alone do not establish effective access: ACLs, mount options and process privileges can also matter.

Sources: GNU numeric modes; GNU ls display; mode structure.