File permission in octal
format
0
|
No permissions
|
1
|
Execute only
|
2
|
Write Only
|
3
|
Write and Execute
|
4
|
Read Only
|
5
|
Read and Execute
|
6
|
Read and Write
|
7
|
Read, Write and Execute
|
When I execute ls -l command I am getting the below result.
here 1 - is the no. of file
imocha - is the owner of the file
centos - is the users group
114 - is the size of the file in bytes
Nov 18 - is the file creation date
21:19 - is the file creation time
process.sh - is the name of the file
rw-rw-r-- - is the permissions of the file
the line is begin by a dash(-) sign it is the indication of normal file, it will be d in case of directory (e.g. drw-rw-r--)
the permissions is divided into three parts group by three characters each.
first there characters i.e. rw- it indicates that imocha can read and write but not execute.
second three characters i.e. rw- it indicates that users group can read and write but not execute.
last three characters i.e r-- it indicates that everyone have privilege to read only

No comments:
Post a Comment