diff options
| author | mokha <mokha@cisco.com> | 2019-05-18 14:30:56 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-18 14:30:56 -0600 |
| commit | 41f48e1640d5b3c38344ea2bbb531c3f0c02e3eb (patch) | |
| tree | 6bf31212e09b25e73ff711cd40061edf0c60906c /README.md | |
| parent | 444fae52d25dbbc24cabba821f7286b9fbcc9f16 (diff) | |
complete ch 7.10
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 11 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. |
