0% found this document useful (0 votes)
849 views

Chmod Cheatsheet

This document provides examples of chmod commands and their descriptions. The chmod commands modify permissions for files and directories, allowing the owner, group, and others to have read, write, and execute permissions. Common permissions are 777 for all users to have full access, 755 for owner to have full access and others to read and execute, and 644 for owner to read and write and others to just read.

Uploaded by

Free Man
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
849 views

Chmod Cheatsheet

This document provides examples of chmod commands and their descriptions. The chmod commands modify permissions for files and directories, allowing the owner, group, and others to have read, write, and execute permissions. Common permissions are 777 for all users to have full access, 755 for owner to have full access and others to read and execute, and 644 for owner to read and write and others to just read.

Uploaded by

Free Man
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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