summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 13:38:40 -0600
committermo <mo.khan@gmail.com>2019-05-25 13:38:40 -0600
commitd5500cd77061f54c5d2b4b7e13386c3f6b0ce14b (patch)
tree70468e288451770187424cca110b8fb80af13eb9
parent8a1bbcba87729f8eef3e99159b5253a67243bb17 (diff)
complete 8.15
-rw-r--r--README.md9
-rw-r--r--exercises/8.1519
2 files changed, 28 insertions, 0 deletions
diff --git a/README.md b/README.md
index a687fd2..8f6e9ba 100644
--- a/README.md
+++ b/README.md
@@ -349,6 +349,15 @@ formula:
The desired `umask` value would be `027`.
+```bash
+[root@2a10b6355d3a ~]# mkdir before
+[root@2a10b6355d3a ~]# umask 027
+[root@2a10b6355d3a ~]# mkdir after
+[root@2a10b6355d3a ~]# ls -l
+drwxr-x---. 2 root root 4096 May 25 19:36 after
+drwxr-xr-x. 2 root root 4096 May 25 19:36 before
+```
+
See `exercises/chapter-8.15`.
16. Give chmod command lines that perform the same tasks that the mesg n and mesg y commands do. (Hint: Every hardware device, including your terminal, has an associated file in the /dev directory.)
diff --git a/exercises/8.15 b/exercises/8.15
new file mode 100644
index 0000000..a2aff24
--- /dev/null
+++ b/exercises/8.15
@@ -0,0 +1,19 @@
+Script started on 2019-05-25 13:36:40-06:00 [TERM="screen-256color" TTY="/dev/pts/7" COLUMNS="238" LINES="13"]
+bash-5.0$ docker run -it fedora /bin/bash
+]0;@2a10b6355d3a:/[root@2a10b6355d3a /]# [root@2a10b6355d3a /]# cd
+]0;@2a10b6355d3a:~[root@2a10b6355d3a ~]# mkdir before
+]0;@2a10b6355d3a:~[root@2a10b6355d3a ~]# umask 027
+]0;@2a10b6355d3a:~[root@2a10b6355d3a ~]# mkdir after
+]0;@2a10b6355d3a:~[root@2a10b6355d3a ~]# ls -l
+total 28
+drwxr-x---. 2 root root 4096 May 25 19:36 after
+-rw-------. 1 root root 3386 Mar 7 06:48 anaconda-ks.cfg
+-rw-r--r--. 1 root root 508 Mar 7 06:48 anaconda-post.log
+drwxr-xr-x. 2 root root 4096 May 25 19:36 before
+-rw-------. 1 root root 3089 Mar 7 06:48 original-ks.cfg
+]0;@2a10b6355d3a:~[root@2a10b6355d3a ~]# exit
+exit
+bash-5.0$ exit
+exit
+
+Script done on 2019-05-25 13:37:02-06:00 [COMMAND_EXIT_CODE="0"]