diff options
| author | mo <mo.khan@gmail.com> | 2019-05-22 20:20:15 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-22 20:20:15 -0600 |
| commit | 37f470489b99c6a86bcda72348d979e030240bd9 (patch) | |
| tree | e93d67f42dfaf139e51261a9111f466c0b00d225 /README.md | |
| parent | 57591618553ea4159e2e93454d147679045865b9 (diff) | |
solve more chmod
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 23 |
1 files changed, 21 insertions, 2 deletions
@@ -234,8 +234,27 @@ lab and is followed by any optional single character in the `$HOME` directory. $ chmod 751 ∼/lab? ``` -c. chmod 511 *.c -d. chmod 711 ∼/* +Change the permissions for all files in the current directory that end +with a `.c` file extension. + +* read, execute for the owner (4 + 1 = 5) +* execute for the group (1 = 1) +* execute for everyone (1 = 1) + +```bash +$ chmod 511 *.c +``` + +Change permissions for all files in the `$HOME` directory. + +* read, write, and execute for the owner (4 + 2 + 1 = 7) +* execute for the group (1 = 1) +* execute for everyone (1 = 1) + +```bash +$ chmod 711 ∼/* +``` + e. ls -l f. ls -ld g. ls -l ∼/personal |
