daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. Create the following directory structure in your home directory:
  2.     PE/
  3.         a/
  4.         b/
  5.         c/
  6.         d/
  7.             qux/
  8.             quux/
  9.         directory1/
  10.         directory2/
  11.         directory3/
  12.         directory4/
  13.         directory5/
  14.             foo/
  15.             bar/
  16.             baz/
  17.  
  18. 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)
  19.  
  20. 3. Copy /etc/fstab to ~/PE/directory5/foo
  21.  
  22. 4. Copy /etc/conf.d to ~/PE/directory5/bar
  23.  
  24. 5. Delete all files in ~/PE/directory5/bar/conf.d that start with the letter 'n'
  25.  
  26. 6. Move ~/PE/directory5/bar/conf.d/hostname to ~/PE
  27.  
  28. 7. Delete ~/PE/d/quux
  29.  
  30. 8. What command would you use to update the last modified time of ~/PE? Place your answer in ~/PE/answer8.txt.
  31.  
  32. 9. How many lines does /etc/inittab contain? Put your answer in ~/PE/answer9.txt.
  33.  
  34. 10. Merge /etc/fstab and /etc/mtab (in that order) into ~/PE/answer10.txt
  35.  
  36. 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
  37.  
  38. 12. What is the PID of 'init'? Place the answer in ~/PE/answer12.txt
  39.  
  40. 13. What is the hardware address of the first hop when accessing www.google.com? Place your answer in ~/PE/answer13.txt
  41.  
  42. 14. Copy /etc/fstab to ~/PE and prevent other users from reading or modifying the copy
  43.  
  44. 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
  45.  
  46. 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
  47.  
  48. 17. Create the following directory structure in ~/PE:
  49.     1/
  50.         10/
  51.         11/
  52.         12/
  53.         13/
  54.         14/
  55.         15/
  56.     2/
  57.         10/
  58.         11/
  59.         12/
  60.         13/
  61.         14/
  62.         15/
  63.     3/
  64.         10/
  65.         11/
  66.         12/
  67.         13/
  68.         14/
  69.         15/
  70.     4/
  71.         10/
  72.         11/
  73.         12/
  74.         13/
  75.         14/
  76.         15/
  77.     5/
  78.         10/
  79.         11/
  80.         12/
  81.         13/
  82.         14/
  83.         15/
  84.  
  85. 18. Create a compressed archive of /etc/init.d and its contents named init.d.tar.gz and place it in ~/PE
  86.  
  87. 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
  88.  
  89. 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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top