I. Directory structure and use:
/boot: System boot file, kernel
/bin: basic Commands for users
/dev: Device files
/etc: Configuration file
/home: User Directory
/root:root User Directory
/sbin: Basic commands for managing classes
/tmp: Temporary file storage location
/usr: Shared read-only data
/MNT: Temporary file system mount point
/media: Mobile device mount point
/OPT: Where to install third-party applications
/SRV: Data used by the system to run the service
/var: Changing Data files
/proc: A virtual file system for outputting kernel-related process information
/sys: Virtual file system for outputting information about hardware devices on the current system
Ii.. File type:
-: Normal file
D: Catalog file
B: Block device files
C: Character device
L: Symbolic Link
P: Piping
S:socket file
Third, file permissions
R:read; If it is a file, have permission to read the contents of the file, and if it is a directory, have permission to browse the directory.
W:write; If it is a file, has the right to add, modify, delete the contents of the file, if it is a directory, have new, delete, modify, move files within the directory permissions.
X:execute; If the file has permission to execute the file, and if it is a directory, the user has permission to enter the directory.
1. Read-only access to the directory does not allow the CD to enter the directory, you must have execute permissions to access it.
2, only the execution permission can only enter the directory, you can not see the contents of the directory, to see the directory of the file name and directory name, you need to read permissions.
3, a file can be deleted, mainly to see if the file is located in the directory to the user has write permissions, if the directory does not have write permission to the user, then all files in the directory can not be deleted, except for the file owner
4, the directory W bit is not set, even if you have a file in the directory W permissions can not write the file
Mask
2017-09-29 14:44 Friday
Linux Notes (001)--CENTOS7 system directory structure and files