Link symbol. Note that for the link symbol, the remaining attribute will always be rwxrwxrwx, which is a pseudo attribute value.
Introduction
The access permissions for files and directories are defined based on read access, write access, and execution access.
When we look at the ls command, we can get some clues.
[Root @ allyes20121031 de_info_center] # ls-l main. cpp
-Rw-r -- 1 root 17745 May 28 main. cpp
[Root @ allyes20121031 de_info_center] #
Analysis
-: File type
Rw-: Owner permission
R --: Group permission
R --: other user permissions
========================================================== ====================
File type
-: Common file
D: directory file
L: link symbol. Note that for the link symbol, the remaining attribute is always rwxrwxrwx, which is a pseudo attribute value.
C: Character device file.
B: block device files.
========================================================== ====================
Permission attributes
R
Directory: Allows you to list contents in a directory.
File: Allows you to open and read files.
W
Directory: whether to allow renaming and deleting objects
File: allows writing or truncating files. if the execution permission is set, the files in the directory can be created or deleted and renamed.
X
Directory: allowed to enter the Directory
File: The file can be executed as an executable file. The language written in the script must be set to readable for execution.