File type permissions hard link number of user name file size file name
-rw-r--r--1 root root 122 07-22 11:07 abc.c
Owning user rights group permissions other permissions belong to group name time
6 4 4
Read and write execution
R W X
1 1 1
R W-
1 1 0
Permissions represent maximum permissions 0777
0644
Device type
Block devices (Block device)
Character device (character device)
Network equipment (Sock device)
File type
- Normal file (normal) Black
Executable (Excute file) Green (the executable permission of the owning user is determined)
D Catalog (directory)Blue
C Character device file (character) yellow
B Blocks devices (block device)Yellow
S Network devices (sock device) pink
L Linked file (link) Turquoise
P Pipe file (pipe) Brown
chmod 0777 xxxx Set a file to a corresponding permission
chmod a+x xxxx Add this file all permissions plus executable a-x opposite
chmod 777 Directory-r set all files in folder directory to full permissions
Linux file permissions