December 16, 2014

Permissions made easy

Read (r): 4

Write (w): 2

Execute (x): 1

So, for example, rwx = 7; rw- = 6; r-x = 5, and so on.

The d in the beginning means “directory”, – in the beginning means “file”.

The pattern is “user”, “group”, “other (ugo).