Skip to content

Commit

Permalink
Update linux_basics.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bclaremar authored Aug 22, 2023
1 parent e0743b4 commit 218cafd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/linux_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,12 @@ $ ls -l
``````{solution} chmod 755 style - "octal bit mask”
- Online, you will come across e.g. `chmod 755`. What does this mean? It’s an "octal bit mask”:
- `7 = 4 + 2 + 1 = r + w + x` All permissions
- `5 = 4 + 0 + 1 = r + + x` Read and execute permission
- Each digit correspond to the binary sum for the owner, group and others, respectively.
- ``7 = 4 + 2 + 1 = r + w + x`` All permissions
- ``5 = 4 + 0 + 1 = r + + x`` Read and execute permission
- 755 then means all permissions for owner, but limiting write permissions for the group and all others
- What number would `rw` be?
Expand Down

0 comments on commit 218cafd

Please sign in to comment.