chmod Calculator

ReadWriteExecute
Owner
Group
Other
Special
rw-r--r--

Recursive: chmod -R 644 folder/

Each octal digit sums: read = 4, write = 2, execute = 1. For example, 644 = owner reads and writes, group and others only read — the typical permission for a file. 755 = owner has everything, everyone else only reads and executes — typical for a folder or script. An optional fourth digit adds setuid = 4, setgid = 2 and sticky = 1; the symbolic view shows s or t when the execute bit is also set, and S or T when it is not.

by MACM · miguelacm.es