Friday, November 9, 2012

chmod - change mode


Exectute below commands

ls –l filename

Now observe the result

chmod 644 filename

ls –l filename

Now observe the result after doing chmod. When you observe you will find out the file access permissions would have changed.

user | group | others
6          4          4
- rw -    r - -      r - -


rwx    Mode
111       7
110       6
101       5
100       4
011       3
010       2
001       1
000       0

r = read only
w = write only
x = execute only

No comments:

Post a Comment