Name:

class section:

  1. What command is used to prep the system for power off?

  2. (2 points) Name 2 commands which will reboot the system:

  3. What does the -f flag do to shutdown?

  4. Starting with the machine powered off, enter single-user mode using GRUB. Explain how you did this:


  5. (2 points) How would you command the system to shutdown completely in 20 minutes, and to display a message saying going down for system maintenance?

  6. What is the PID of init?

  7. What program starts init?

  8. What runlevel are you currently at?

  9. what command would switch you to runlevel 3?

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

  11. Name 3 services which are started at runlevel 2:

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

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

  14. What kind of file is /etc/rc.d/rc.local?

  15. Using chkconfig, determine all runlevels for which sshd is active. What command did you use, and what was the result?


  16. Use chkconfig to prevent ip6tables from starting for runlevel 5. What is the syntax of the command you used?

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


  18. (2 points) How would you use chkconfig and grep to show only services which are 'on' at some runlevel?

  19. (2 points) What command (again, using chkconfig and grep) would show only services which are active at runlevel 5?

  20. (2 points) What does the number following the K or S in a filename in /etc/rc.d/rc3.d/ indicate?