Chmod Cheatsheet

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Permission Command Examples Description

chmod 777 filename


rwx rwx rwx Anybody can read, write, execute.
chmod -R 777 dir
Owner & Group can read, write,
chmod 775 filename
rwx rwx r-x execute. Everyone else can read,
chmod -R 775 dir
execute.
chmod 774 filename Owner & Group can read, write,
rwx rwx r–
chmod -R 774 dir execute. Everyone else can read.
chmod 755 filename Owner can read, write, execute.
rwx r-x r-x
chmod -R 755 dir Everyone else can read, execute.
chmod 700 filename Owner can read, write, execute. No
rwx — —
chmod -R 700 dir one else has any rights.
chmod 666 filename
rw- rw- rw- Everyone can read, write.
chmod -R 666 dir
chmod 664 filename Owner & Group can read, write.
rw- rw- r–
chmod -R 664 dir Everyone else can read.
chmod 644 filename Owner can read, write. Everyone else
rw- r– r–
chmod -R 644 dir can read.

You might also like