chmod

chmod usage guide

chmod

Usage

chmod 600 file.txt

Gives rw- permission to the owner, --- (no permission) to the group, and --- to the others

Permission

Symbolic representation

PermissionSymbol
Readr
Writew
Executex
No permission-

Numeric representation

Permission ValueBinary Representation (rwx)Permission Description
0000No permissions
1001Execute permission
2010Write permission
3011Write and execute permissions
4100Read permission
5101Read and execute permissions
6110Read and write permissions
7111Read, 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

https://www.guru99.com/file-permissions.html

Content Licensed under CC BY-SA 4.0. Code licensed under the MIT License.
Last updated on Aug 13, 2024 07:57 UTC