summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 14:53:54 -0600
committermo <mo.khan@gmail.com>2019-05-25 14:53:54 -0600
commit64baefb6c8fdbd7ac5d78d2037eff4c5ec68de3d (patch)
treec414656d45bc06ae04063056f8fedd097fd194da /exercises
parenta2a32c22acdc6e06963ffa7c0f57a43570e64cce (diff)
start assignment 2
Diffstat (limited to 'exercises')
-rw-r--r--exercises/8.1519
-rw-r--r--exercises/chapter-7.109
-rw-r--r--exercises/chapter-7.1116
-rw-r--r--exercises/chapter-7.159
-rw-r--r--exercises/chapter-7.1712
-rw-r--r--exercises/chapter-7.712
-rw-r--r--exercises/chapter-7.89
-rw-r--r--exercises/chapter-8.1314
-rw-r--r--exercises/chapter-8.1426
-rw-r--r--exercises/chapter-8.1515
-rw-r--r--exercises/chapter-8.1615
-rw-r--r--exercises/chapter-8.813
-rw-r--r--exercises/chapter-8.914
13 files changed, 0 insertions, 183 deletions
diff --git a/exercises/8.15 b/exercises/8.15
deleted file mode 100644
index a2aff24..0000000
--- a/exercises/8.15
+++ /dev/null
@@ -1,19 +0,0 @@
-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"]
diff --git a/exercises/chapter-7.10 b/exercises/chapter-7.10
deleted file mode 100644
index 0b93203..0000000
--- a/exercises/chapter-7.10
+++ /dev/null
@@ -1,9 +0,0 @@
-Script started on Sat May 18 14:29:38 2019
-bash-3.2$ ls -id /
-2 /
-bash-3.2$ ls -id $HOME
-994348 /Users/mokha
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 14:29:52 2019
diff --git a/exercises/chapter-7.11 b/exercises/chapter-7.11
deleted file mode 100644
index 2aae7fb..0000000
--- a/exercises/chapter-7.11
+++ /dev/null
@@ -1,16 +0,0 @@
-Script started on Sat May 18 14:34:06 2019
-bash-3.2$ cd
-bash-3.2$ mkdir -p memos
-bash-3.2$ cd memos/
-bash-3.2$ vim memo.james
-[?1049h[?1h=[?25l"memo.james" [New File] 1  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ memo.james - [buffer:01][column:01][line:0000/0001][?25h[?25li -- INSERT --[?25h[?25lh21[?25h[?25le3[?25h[?25ll4[?25h[?25ll5[?25h[?25lo6[?25h[?25l.7[?25h[?25l w8[?25h[?25lo9[?25h[?25lr10[?25h[?25ll1[?25h[?25ld2[?25h[?25l^[[?25h[?25l 1[?25h[?25l::[?25hw[?25l[?25hq[?25l[?25ha[?25l[?25h [?25l"memo.james" [New] 1L, 12C written
-[?1l>[?25h[?1049lbash-3.2$ ls ./memo.james
-./memo.james
-bash-3.2$ ls ~/memos/memo.james m
-/Users/mokha/memos/memo.james
-bash-3.2$ ls /Users/mokha/memos/memo.james
-/Users/mokha/memos/memo.james
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 14:34:42 2019
diff --git a/exercises/chapter-7.15 b/exercises/chapter-7.15
deleted file mode 100644
index d649ad2..0000000
--- a/exercises/chapter-7.15
+++ /dev/null
@@ -1,9 +0,0 @@
-Script started on Sat May 18 14:42:25 2019
-bash-3.2$ cd
-bash-3.2$ rm -fr memos/
-bash-3.2$ ls -alh memos
-ls: memos: No such file or directory
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 14:42:40 2019
diff --git a/exercises/chapter-7.17 b/exercises/chapter-7.17
deleted file mode 100644
index 6a163c2..0000000
--- a/exercises/chapter-7.17
+++ /dev/null
@@ -1,12 +0,0 @@
-Script started on Sat May 18 16:13:34 2019
-bash-3.2$ cd ~/unix && ls . | grep -e 'chapter[12689]\.[eps|prn]' | xargs file
-chapter1.eps: empty
-chapter1.prn: empty
-chapter2.eps: empty
-chapter6.eps: empty
-chapter8.eps: empty
-chapter9.eps: empty
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 16:13:40 2019
diff --git a/exercises/chapter-7.7 b/exercises/chapter-7.7
deleted file mode 100644
index 36827c3..0000000
--- a/exercises/chapter-7.7
+++ /dev/null
@@ -1,12 +0,0 @@
-Script started on 2019-05-25 12:41:10-06:00 [TERM="screen-256color" TTY="/dev/pts/6" COLUMNS="238" LINES="13"]
-bash-5.0$ echo $HOME
-/home/mokha
-bash-5.0$ echo ~/
-/home/mokha/
-bash-5.0$ cd
-bash-5.0$ pwd
-/home/mokha
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-25 12:41:21-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-7.8 b/exercises/chapter-7.8
deleted file mode 100644
index 2822fe2..0000000
--- a/exercises/chapter-7.8
+++ /dev/null
@@ -1,9 +0,0 @@
-Script started on 2019-05-25 12:49:31-06:00 [TERM="screen-256color" TTY="/dev/pts/6" COLUMNS="238" LINES="13"]
-bash-5.0$ grep mokha /etc/passwd
-mokha:x:1000:1000:mo:/home/mokha:/bin/bash
-bash-5.0$ grep mokha /etc/shadow
-mokha:password:18036:0:99999:7:::
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-25 12:49:50-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-8.13 b/exercises/chapter-8.13
deleted file mode 100644
index 5878854..0000000
--- a/exercises/chapter-8.13
+++ /dev/null
@@ -1,14 +0,0 @@
-Script started on 2019-05-22 20:29:07-06:00 [TERM="screen-256color" TTY="/dev/pts/3" COLUMNS="238" LINES="13"]
-bash-5.0$ mkdir -p ~/dir1
-bash-5.0$ cp /etc/passwd ~/dir1/mypasswd
-bash-5.0$ chmod +x ~/dir1/
-bash-5.0$ cd ~/dir1/
-bash-5.0$ ls
-mypasswd
-bash-5.0$ cd ..
-bash-5.0$ rm dir1/mypasswd
-bash-5.0$ cp /etc/passwd dir1
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-22 20:30:23-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-8.14 b/exercises/chapter-8.14
deleted file mode 100644
index 582a8a1..0000000
--- a/exercises/chapter-8.14
+++ /dev/null
@@ -1,26 +0,0 @@
-Script started on 2019-05-25 13:31:17-06:00 [TERM="screen-256color" TTY="/dev/pts/7" COLUMNS="238" LINES="13"]
-bash-5.0$ docker run -it fedora /bin/bash
-]0;@129dafd2e4c3:/[root@129dafd2e4c3 /]# [root@129dafd2e4c3 /]# cd
-]0;@129dafd2e4c3:~[root@129dafd2e4c3 ~]# mkdir -p before
-]0;@129dafd2e4c3:~[root@129dafd2e4c3 ~]# umask 037
-]0;@129dafd2e4c3:~[root@129dafd2e4c3 ~]# mkdir -p after
-]0;@129dafd2e4c3:~[root@129dafd2e4c3 ~]# ls -alh
-total 64K
-dr-xr-x---. 1 root root 4.0K May 25 19:31 .
-drwxr-xr-x. 1 root root 4.0K May 25 19:31 ..
-drwxr-----. 2 root root 4.0K May 25 19:31 after
--rw-------. 1 root root 3.4K Mar 7 06:48 anaconda-ks.cfg
--rw-r--r--. 1 root root 508 Mar 7 06:48 anaconda-post.log
--rw-r--r--. 1 root root 18 Jul 15 2018 .bash_logout
--rw-r--r--. 1 root root 176 Jul 15 2018 .bash_profile
--rw-r--r--. 1 root root 176 Jul 15 2018 .bashrc
-drwxr-xr-x. 2 root root 4.0K May 25 19:31 before
--rw-r--r--. 1 root root 100 Jul 15 2018 .cshrc
--rw-------. 1 root root 3.1K Mar 7 06:48 original-ks.cfg
--rw-r--r--. 1 root root 129 Jul 15 2018 .tcshrc
-]0;@129dafd2e4c3:~[root@129dafd2e4c3 ~]# exit
-exit
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-25 13:32:00-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-8.15 b/exercises/chapter-8.15
deleted file mode 100644
index 78bdc8a..0000000
--- a/exercises/chapter-8.15
+++ /dev/null
@@ -1,15 +0,0 @@
-Script started on 2019-05-25 13:13:49-06:00 [TERM="screen-256color" TTY="/dev/pts/7" COLUMNS="238" LINES="13"]
-bash-5.0$ docker run -it fedora /bin/bash
-]0;@777f2d53e3df:/[root@777f2d53e3df /]# [root@777f2d53e3df /]# cd
-]0;@777f2d53e3df:~[root@777f2d53e3df ~]# touch before
-]0;@777f2d53e3df:~[root@777f2d53e3df ~]# umask 027
-]0;@777f2d53e3df:~[root@777f2d53e3df ~]# touch after
-]0;@777f2d53e3df:~[root@777f2d53e3df ~]# ls -alh before after
--rw-r-----. 1 root root 0 May 25 19:14 after
--rw-r--r--. 1 root root 0 May 25 19:14 before
-]0;@777f2d53e3df:~[root@777f2d53e3df ~]# exit
-exit
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-25 13:14:32-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-8.16 b/exercises/chapter-8.16
deleted file mode 100644
index e20c466..0000000
--- a/exercises/chapter-8.16
+++ /dev/null
@@ -1,15 +0,0 @@
-Script started on 2019-05-25 13:49:16-06:00 [TERM="screen-256color" TTY="/dev/pts/6" COLUMNS="238" LINES="13"]
-bash-5.0$ docker run -it fedora /bin/bash
-]0;@52accce64b70:/[root@52accce64b70 /]# [root@52accce64b70 /]# tty
-/dev/pts/0
-]0;@52accce64b70:/[root@52accce64b70 /]# ls -alh /dev/pts/0
-crw--w----. 1 root tty 136, 0 May 25 19:49 /dev/pts/0
-]0;@52accce64b70:/[root@52accce64b70 /]# chmod 600 /dev/pts/0
-]0;@52accce64b70:/[root@52accce64b70 /]# ls -alh /dev/pts/0
-crw-------. 1 root tty 136, 0 May 25 19:49 /dev/pts/0
-]0;@52accce64b70:/[root@52accce64b70 /]# exit
-exit
-bash-5.0$ exit
-exit
-
-Script done on 2019-05-25 13:49:59-06:00 [COMMAND_EXIT_CODE="0"]
diff --git a/exercises/chapter-8.8 b/exercises/chapter-8.8
deleted file mode 100644
index a4dc026..0000000
--- a/exercises/chapter-8.8
+++ /dev/null
@@ -1,13 +0,0 @@
-Script started on Sat May 18 16:38:03 2019
-bash-3.2$ groups
-staff everyone localaccounts _appserverusr admin _appserveradm _lpadmin com.apple.sharepoint.group.1 _appstore _lpoperator _developer _analyticsusers com.apple.access_ftp com.apple.access_screensharing com.apple.access_ssh com.apple.sharepoint.group.2
-bash-3.2$ whoami
-mokha
-bash-3.2$ groups mokha
-staff everyone localaccounts _appserverusr admin _appserveradm _lpadmin com.apple.sharepoint.group.1 _appstore _lpoperator _developer _analyticsusers com.apple.access_ftp com.apple.access_screensharing com.apple.access_ssh com.apple.sharepoint.group.2
-bash-3.2$ groups root
-wheel daemon kmem sys tty operator procview procmod everyone staff certusers localaccounts admin com.apple.sharepoint.group.1 _appstore _lpadmin _lpoperator _developer _analyticsusers com.apple.access_ftp com.apple.access_screensharing com.apple.access_ssh com.apple.sharepoint.group.2
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 16:38:47 2019
diff --git a/exercises/chapter-8.9 b/exercises/chapter-8.9
deleted file mode 100644
index bfe4da5..0000000
--- a/exercises/chapter-8.9
+++ /dev/null
@@ -1,14 +0,0 @@
-Script started on Sat May 18 18:28:36 2019
-bash-3.2$ touch test1
-bash-3.2$ chmod 640 test1
-bash-3.2$ ls -alh test1
--rw-r----- 1 mokha staff 0B 18 May 18:27 test1
-bash-3.2$ rm test1
-bash-3.2$ touch test1
-bash-3.2$ chmod u=rw,g=r,o= test1
-bash-3.2$ ls -alh test1
--rw-r----- 1 mokha staff 0B 18 May 18:28 test1
-bash-3.2$ exit
-exit
-
-Script done on Sat May 18 18:29:15 2019