Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Create the following directory structure in your home directory:
- PE/
- a/
- b/
- c/
- d/
- qux/
- quux/
- directory1/
- directory2/
- directory3/
- directory4/
- directory5/
- foo/
- bar/
- baz/
- 2. What is the underlying device of the root file system? Place the answer in ~/PE/answer2.txt (on a single line, separated by spaces)
- 3. Copy /etc/fstab to ~/PE/directory5/foo
- 4. Copy /etc/conf.d to ~/PE/directory5/bar
- 5. Delete all files in ~/PE/directory5/bar/conf.d that start with the letter 'n'
- 6. Move ~/PE/directory5/bar/conf.d/hostname to ~/PE
- 7. Delete ~/PE/d/quux
- 8. What command would you use to update the last modified time of ~/PE? Place your answer in ~/PE/answer8.txt.
- 9. How many lines does /etc/inittab contain? Put your answer in ~/PE/answer9.txt.
- 10. Merge /etc/fstab and /etc/mtab (in that order) into ~/PE/answer10.txt
- 11. Determine the usernames of all accounts with a 'nologin' shell and put the list of usernames (and only usernames) in ~/PE/answer11.txt. Hint: look at the 'cut' command
- 12. What is the PID of 'init'? Place the answer in ~/PE/answer12.txt
- 13. What is the hardware address of the first hop when accessing www.google.com? Place your answer in ~/PE/answer13.txt
- 14. Copy /etc/fstab to ~/PE and prevent other users from reading or modifying the copy
- 15. Put the last 10 lines of /var/log/messages into ~/PE/messages. What command would you use to follow the contents of /var/log/messages in real time? Place the answer in ~/PE/answer15.txt
- 16. Place a list of all files underneath /etc that begin with the letter 'b' in ~/PE/answer16.txt. Log all errors to ~/PE/error16.txt
- 17. Create the following directory structure in ~/PE:
- 1/
- 10/
- 11/
- 12/
- 13/
- 14/
- 15/
- 2/
- 10/
- 11/
- 12/
- 13/
- 14/
- 15/
- 3/
- 10/
- 11/
- 12/
- 13/
- 14/
- 15/
- 4/
- 10/
- 11/
- 12/
- 13/
- 14/
- 15/
- 5/
- 10/
- 11/
- 12/
- 13/
- 14/
- 15/
- 18. Create a compressed archive of /etc/init.d and its contents named init.d.tar.gz and place it in ~/PE
- 19. Copy ~/PE/init.d.tar.gz to your local machine and verify its contents using the file's hash. Put the hash in ~/PE/answer19.txt
- 20. What command would you use to force the SSH server (sshd) to stop? Place the answer in ~/PE/answer20.txt. DO NOT run the command.
Add Comment
Please, Sign In to add comment