Permissions to files:
R: The actual contents of this file can be read.
W: You can edit, add, or modify the contents of the file (without deleting the file), or W If you do not have R permission.
X: The file has permission to be executed by the system. can be deleted.
permissions to the directory;
R:read contents in directory. Represents a permission to read a list of directory structures.
W:modify contents in directory. Represents a permission to change the list of this directory structure. Such as: Create new files and directories, delete existing files and directories (regardless of the permissions of the file), rename the existing files or directories, transfer files, directory locations in that directory
X:access directory. The X of the directory represents the purpose for which the user can enter the directory called the working directory.
Linux permissions for file and directory meanings