#To check permission of files we use ls -all $ls -all total 697288 drwxr-xr-x+ 26 rahul staff 884B Oct 4 19:26 . drwxr-xr-x 6 root admin 204B Jun 8 19:30 .. drwxr-xr-x+ 5 rahul staff 170B Jun 8 19:26 Public drwx------+ 3 rahul staff 102B Jun 8 19:26 Movies drwxr-xr-x 4 rahul staff 136B Jun 10 12:29 .composer -rw------- 1 rahul staff 8.6K Jul 2 22:35 .viminfo drwx------ 3 rahul staff 102B Jun 9 08:01 .ssh drwx------+ 4 rahul staff 136B Jun 9 20:47 Music -rw-r--r-- 1 rahul rahul 212B Jun 3 08:12 crontab lrwxrwxrwx 1 rahul rahul 212B Jun 4 09:32 public_html -> l5/pub/Permission Details :
Permission | Command Examples | Description |
---|---|---|
rwx rwx rwx | chmod 777 filename chmod -R 777 dirname |
Anybody can read, write, execute. |
rwx rwx r-x | chmod 775 filename chmod -R 775 dirname |
Owner & Group can read, write, execute. Everyone else can read, execute. |
rwx rwx r-- | chmod 774 filename chmod -R 774 dirname |
Owner & Group can read, write, execute. Everyone else can read. |
rwx r-x r-x | chmod 755 filename chmod -R 755 dirname |
Owner can read, write, execute. Everyone else can read, execute. |
rwx --- --- | chmod 700 filename chmod -R 700 dirname |
Owner can read, write, execute. No one else has any rights. |
rw- rw- rw- | chmod 666 filename chmod -R 666 dirname |
Everyone can read, write. |
rw- rw- r-- | chmod 664 filename chmod -R 664 dirname |
Owner & Group can read, write. Everyone else can read. |
rw- r-- r-- | chmod 644 filename chmod -R 644 dirname |
Owner can read, write. Everyone else can read. |
Technical Architect
Kuala Lumpur, Malaysia
I'm a Full Stack Web Developer working in a MNC and passionate of developing modern web and mobile applications.
I have designed and developed CodephpOnline & CodephpOnline Wiki platform to expatiate my coding and technology learning experiences.
In my leisure time, I write technical articles on web development such as PHP, Laravel, CodeIgniter, Mediawiki, Linux, Angular, Ionic, ReactJS, NodeJS, AJAX, jQuery, Cloud and more.