First charater: User permissions
Second chracter: Group permissions
Last character: Other permissions

{| | align=”center” style=”background:#f0f0f0;”|’'’ls listing’’’ | align=”center” style=”background:#f0f0f0;”|’'’chmod code’’’ |- | r——–||400 |- | rw——-||600 |- | rw-r—–||640 |- | rwx——||700 |- | rwxrwx—||770 |- | rwxr-xr-x||755 | |} ===Examples===

[email protected]:~$ chmod 600 test
[email protected]:~$ ls -l test
-rw------- 1 user group 6 2009-11-25 15:48 test

[email protected]:~$ chmod 640 test
[email protected]:~$ ls -l test
-rw-r----- 1 user group 6 2009-11-25 15:48 test

[email protected]:~$ chmod 750 test
[email protected]:~$ ls -l test
-rwxr-x--- 1 user group 6 2009-11-25 15:48 test

[email protected]:~$ chmod 700 test
[email protected]:~$ ls -l test
-rwx------ 1 user group 6 2009-11-25 15:48 test

[[Category:Linux]]