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.
The umask 731 command sets the default file creation permissions for new files and directories in a Unix-like operating system. The umask value is subtracted from the system's default permissions, which are typically 666 for files and 777 for directories. In this case, a umask of 731 means that newly created files will have permissions of 636 (read and write for owner, read for group, no permissions for others) and newly created directories will have permissions of 046 (read and execute for owner, no permissions for group and others). This restricts access based on the specified umask settings.
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.