Name:
class section:
- What command is used to prep the system for power off?
- (2 points) Name 2 commands which will reboot the system:
- What does the -f flag do to shutdown?
- Starting with the machine powered off, enter single-user mode using GRUB. Explain how you did this:
- (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?
- What is the PID of init?
- What program starts init?
- What runlevel are you currently at?
- what command would switch you to runlevel 3?
- Name 3 services which are started at runlevel 5:
- Name 3 services which are started at runlevel 2:
- What is the primary difference between runlevels 3 and 5?
- What link in the /etc/rc.d/rc5.d directory ensures that rc.local is run?
- What kind of file is /etc/rc.d/rc.local?
- Using chkconfig, determine all runlevels for which sshd is active. What command did you use, and what was the result?
- Use chkconfig to prevent ip6tables from starting for runlevel 5. What is the syntax of the command you used?
- Now, without using chkconfig prevent sendmail from starting at both runlevel 3 and runlevel 5. What commands did you have to run?
- (2 points) How would you use chkconfig and grep to show only services which are 'on' at some runlevel?
- (2 points) What command (again, using chkconfig and grep) would show only services which are active at runlevel 5?
- (2 points) What does the number following the K or S in a filename in /etc/rc.d/rc3.d/ indicate?