diff options
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | exercises/8.15 | 19 |
2 files changed, 28 insertions, 0 deletions
@@ -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 /]#
[K[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 [0m[01;34mafter[0m
+-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 [01;34mbefore[0m
+-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"] |
