summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-22 20:16:58 -0600
committermo <mo.khan@gmail.com>2019-05-22 20:16:58 -0600
commitfe910a1bc6c8715e6f9022ba51d1b79dfa59fcaa (patch)
treeb1920c821568a53672c1a7c3a4350386bfa3ed03
parentbb7053d1e29624e5824ca262a6fc34ae8ab9c53e (diff)
answer question
-rw-r--r--.gitignore1
-rw-r--r--README.md14
2 files changed, 13 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index a136337..f078fe2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
*.pdf
+tmp
diff --git a/README.md b/README.md
index 8f9c21e..e971b07 100644
--- a/README.md
+++ b/README.md
@@ -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