summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2019-05-18 14:30:56 -0600
committermokha <mokha@cisco.com>2019-05-18 14:30:56 -0600
commit41f48e1640d5b3c38344ea2bbb531c3f0c02e3eb (patch)
tree6bf31212e09b25e73ff711cd40061edf0c60906c
parent444fae52d25dbbc24cabba821f7286b9fbcc9f16 (diff)
complete ch 7.10
-rw-r--r--README.md14
-rw-r--r--exercises/chapter-7.109
2 files changed, 20 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0885116..57360ab 100644
--- a/README.md
+++ b/README.md
@@ -47,10 +47,18 @@ shell: bash
Password is stored in `/etc/shadow`
-
9. What would happen if the last field of the line in the /etc/passwd file were replaced with /usr/bin/date? Why?
- 10. What are the inode numbers of the root and your home directories on your machine? Give the commands that you used to find these inode numbers.
- 11. Create a directory, called memos, in your home directory. Go into this directory and create a file memo.james by using one of the editors discussed in Chapter 5. Give three pathnames for this file.
+
+The login shell would become the date command. The `date` program prints the date. This would print the date and end.
+
+10. What are the inode numbers of the root and your home directories on your machine? Give the commands that you used to find these inode numbers.
+
+```bash
+ls -id /
+ls -id $HOME
+```
+
+11. Create a directory, called memos, in your home directory. Go into this directory and create a file memo.james by using one of the editors discussed in Chapter 5. Give three pathnames for this file.
diff --git a/exercises/chapter-7.10 b/exercises/chapter-7.10
new file mode 100644
index 0000000..0b93203
--- /dev/null
+++ b/exercises/chapter-7.10
@@ -0,0 +1,9 @@
+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