chmod
Usage
chmod 600 file.txt
Gives rw-
permission to the owner
, ---
(no permission) to the group
, and ---
to the others
Permission
Symbolic representation
Permission | Symbol |
---|---|
Read | r |
Write | w |
Execute | x |
No permission | - |
Numeric representation
Permission Value | Binary Representation (rwx) | Permission Description |
---|---|---|
0 | 000 | No permissions |
1 | 001 | Execute permission |
2 | 010 | Write permission |
3 | 011 | Write and execute permissions |
4 | 100 | Read permission |
5 | 101 | Read and execute permissions |
6 | 110 | Read and write permissions |
7 | 111 | Read, write, and execute permissions |
References
https://linovox.com/what-does-chmod-600-mean-and-when-to-use/
https://askubuntu.com/questions/1153204/symbolic-equivalent-of-chmod-600