read, write, execute
Create a file and set it's permissions to 222
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).
In Linux the chmod command is used to set file permissions.
There is generally only 1 standard command for permissions on a file or directory - chmod. You can affect permissions by other commands such as changing the ownership or group ownership of a file or directory. Other commands may be specific to different versions of Unix and Linux, so are not listed here.
Type the following command# ls -l
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.
Permissions are allocated based on users and groups, with read, write, and executable privileges being capable of being set.
The group has read and execute permissions. The number is octal; the digits pertain to owner, group and all users respectively. The binary representation in three bits of each digit gives read, write and execute permissions respectively. Thus the middle digit, for group permissions, a 5, is binary 101, indicating read and execute but no write permission.
Read permission(4) Write permission(2) Execute permission(1)
You can use the Server app to set standard permissions-Read & Write, Read Only, Write Only, or None-to control access to a folder and its contents. You can set different permissions for one user (the owner), one group, and all other users who log in. You can also set standard permissions on individual files. Standard permissions are also called POSIX permissions.
k is not a standard command in Linux.
gerp