numeric mode

A permission setting written as three digits, one each for owner, group and others, where read is 4, write 2 and execute 1.

In more detail

Add the values for each digit: 7 is all three rights, 6 read and write, 5 read and execute, 4 read only. 755 suits programs and directories, 644 ordinary files, and 600 private files such as keys.

Examples

chmod 755 run.sh
find . -name secret.txt -perm 600

Related terms

Taught in

References