Zet - How you explain chmod in simple terms?
How you explain chmod in simple terms?
Common Permission Combinations
| Numeric Value | Symbol | Permission Description |
|---|---|---|
| 7 | rwx | Read, write, and execute |
| 6 | rw- | Read and write |
| 5 | r-x | Read and execute |
| 4 | r— | Read only |
| 3 | -wx | Write and execute |
| 2 | -w- | Write only |
| 1 | —x | Execute only |
| 0 | --- | No permissions |
Example: chmod 755 myfolder
| User | Group | Others |
|---|---|---|
| 7 (rwx) | 5 (r-x) | 5 (r-x) |
chmod 755 sets the folder permissions to drwxr-xr-x.
#chmod #bash