diff options
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | exercises/chapter-7.10 | 9 |
2 files changed, 20 insertions, 3 deletions
@@ -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 |
