diff options
| author | mo <mo.khan@gmail.com> | 2019-05-22 20:16:58 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-22 20:16:58 -0600 |
| commit | fe910a1bc6c8715e6f9022ba51d1b79dfa59fcaa (patch) | |
| tree | b1920c821568a53672c1a7c3a4350386bfa3ed03 | |
| parent | bb7053d1e29624e5824ca262a6fc34ae8ab9c53e (diff) | |
answer question
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | README.md | 14 |
2 files changed, 13 insertions, 2 deletions
@@ -1 +1,2 @@ *.pdf +tmp @@ -220,10 +220,20 @@ The following will change the permissions for a file named `lab5` in the * read and write for everyone (4 + 2 = 6) ```bash -chmod 776 ∼/lab5 +$ chmod 776 ∼/lab5 +``` + +The following will change the permissions for any files that start with +lab and is followed by any optional single character in the `$HOME` directory. + +* read, write, execute for the owner (4 + 2 + 1 = 7) +* read, execute for the group (4 + 1 = 5) +* execute for everyone (1 = 1) + +```bash +$ chmod 751 ∼/lab? ``` -b. chmod 751 ∼/lab? c. chmod 511 *.c d. chmod 711 ∼/* e. ls -l |
