Name:

Class Period:

  1. copy the file /etc/passwd into your home directory. Show the command you used:

  2. Without changing your own permissions on your home directory, give all other users the ability to change into your home directory. Show the command you used:

  3. Create a directory called sandbox under your home directory. Show the command you used:

  4. Now set the permissions on sandbox to be 755. What are those permissions?

  5. Using vi, open up the file passwd which is in your home directory. Now, delete 4 lines. Show the commands you used to do this:


  6. do a long listing on the file /usr/bin/passwd. How big is that file?

  7. Use the file command to determine the type of /usr/bin/passwd. What is the command you used, and what was the result?


  8. Show a command which will list off all processes currently running on the system:

  9. Modify the previous command to display the results one page at at time:

  10. What are the names of three currently running processes owned by root?


  11. For what is the find command used?

  12. Delete the passwd file from your home directory. What command did you use?

  13. What command is used to change your password?

  14. what command would switch you to runlevel 3?

  15. Name 2 commands which will reboot the system:

  16. What command, given to the bootloader, will bring your system directly to single-user mode?

  17. What does the -f flag do to shutdown? (hint: it's not 'fast')

  18. How would you command the system to shutdown completely in 20 minutes, and to display a message saying "going down for new hardware install"?

  19. Name 3 services which are started at runlevel 5:

  20. What is the primary difference between runlevels 3 and 5?

  21. What link in the /etc/rc.d/rc5.d directory ensures that rc.local is run?

  22. What is the PID of init?

  23. What program starts init?

  24. Use chkconfig to prevent avahi-daemon from starting for runlevel 5. What is the syntax of the command you used?

  25. Now, without using chkconfig prevent bluetooth from starting at both runlevel 3 and runlevel 5. What commands did you have to run?