Note: The root user is not under the control of file and directory permissions, that is, with arbitrary permissions!
File read, write, execute permission description:
Readable r: Indicates a permission to read the contents of a file
Writable W: Indicates the right to modify the contents of the file (delete files or modify the file name and other permissions are controlled by the parent directory permissions, and the file itself permissions Independent)
Executable x: Represents the right to execute the file (the file itself can be executed, the normal user also needs to have R permissions)
Description of the read, write, and execute permissions for the directory:
Readable r: Represents the permission to browse the contents of the directory, LS (requires X permission to mate, such as no x permission, you can only display the file or directory name, file attributes, etc. displayed as a question mark)
Writable W: Represents the right to create, delete, or move files and directories within a directory (independent of the permissions of the file itself, requiring X-permission mates)
Executable x: Indicates a permission to enter the directory, that is, the CD
Summary of Read, write, and execute permissions for Linux files and directories