Permissions are allocated based on users and groups, with read, write, and executable privileges being capable of being set.
It lists the directories (folders) only in a given path, and also lists the file permissions and file sizes for those folders.
Each file and directory can be marked read-only, writable, and executable. Each file / directory will contain three sets of permissions that can be marked as such, namely the owner, other users in the owners group, and users not in the group.
Create a file and set it's permissions to 222
read, write, execute
In Linux the chmod command is used to set file permissions.
File permissions in Linux are not represented in binary format, but rather octal format. The first digit represents owner permissions, second digit is group permissions, and the final one is permissions for everyone. Read permissions are assigned a 4, write permissions are assigned a 2, and execute permissions are assigned a 1. A 6 permission allows read and write (4+2).
Type the following command# ls -l
Have a look in the Related Links, I believe that'll help you!
Read permission(4) Write permission(2) Execute permission(1)
The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux operating systems
The Home directory is the most important one. All other directories, such as Documents, Pictures, Videos, and so on, stem from the Home directory.
gerp