permission generator linux code example Example: octal chmod 0 --- 1 --x 2 -w- 3 -wx 4 r-- 5 r-x 6 rw- 7 rwx 1 - x 2 - w 4 - r