Você está na página 1de 3

SUSE Linux Enterprise Server Administration (Course 3037)

5-1

SUSE Linux Enterprise Server Administration (Course 3037)


1-4188-3731-8
Chapter 5 Answers

Review Questions
1. What script is executed at boot time to activate and mount file system devices?
a. linuxrc
b. initrd
c. /etc/init.d/rc
d. /etc/init.d/boot.d
ANSWER: d
2. What is the PID of the init daemon? _____
ANSWER: 1
3. Which action in the /etc/inittab file is used to determine the default runlevel at system
initialization? _____
ANSWER: initdefault
4. What is the default runlevel in SLES _____
ANSWER: 5
5. What runlevel loads all networking daemons (including NFS) but does not start a display
manager?
a. 1
b. 2
c. 3
d. 5
ANSWER: c
6. What runlevel is used to shut down the system?
a. 0
b. 1
c. 5
d. 6
ANSWER: a

SUSE Linux Enterprise Server Administration (Course 3037)

5-2

7. What command can you type to change your runlevel to Single user mode? _____
ANSWER: init 1
8. Which of the following commands may be used to stop the SSH daemon (sshd)? (Choose
all that apply.)
a. rcsshd stop
b. kstopsys sshd
c. /etc/init.d/sshd stop
d. /etc/rc/stopsshd
ANSWER: a,c
9. Which of the following methods can you use to start the SSH daemon (sshd) upon
entering runlevel 3? (Choose all that apply.)
a. Create a shortcut to the /etc/init.d/sshd script called /etc/init.d/rc3.d/S88sshd
b. Create a shortcut to the /etc/init.d/sshd script called /etc/init.d/rc3.d/K88sshd
c. Change the INIT INFO section of the /etc/init.d/sshd script and run the insserv
command
d. Run the YaST Runlevel Editor
ANSWER: a,c,d
10. Which template can you copy to create a script that is used to start or stop daemons in the
/etc/init.d directory _____
ANSWER: /etc/init.d/skeleton
11. Which of the following commands will force your system to reboot? (Choose all that
apply.)
a. init 0
b. reboot
c. powerwait
d. init 6
ANSWER: b,d
12. What command can you use to load the module testmod and its dependant modules into
the Linux kernel _____
ANSWER: modprobe testmod
13. Which of the following lines in /etc/modprobe.conf will load the tulip module for your
first Ethernet network card (eth0)?
a. options eth0 tulip
b. alias eth0 tulip

SUSE Linux Enterprise Server Administration (Course 3037)

5-3

c. options tulip eth0


d. alias tulip eth0
ANSWER: b
14. You have made changes to your /etc/lilo.conf file. When you reboot your system, you
notice that these changes have not taken effect. What should you do to correct the
problem? _____
ANSWER: Run the lilo command to rewrite the boot loader
15. Which of the following are benefits of the GRUB boot manager compared to LILO?
(Choose all that apply.)
a. GRUB has an interactive shell
b. GRUB can boot multiple operating systems
c. GRUB can read files on the filesystem
d. GRUB can be installed on the MBR
ANSWER: a,c
16. Which of the following methods may be used to change running system settings? (Choose
all that apply.)
a. Changing the contents of files within /proc/sys
b. Changing the contents of files within /etc/sysconfig
c. Using the sysctl command
d. Using the Powertweak Configuration utility in YaST
ANSWER: a,c,d

Discovery Exercises
Starting a Daemon in a Runlevel
The script should be run in Runlevel 3.

Enabling Runlevel 4
Runlevel 4 may be used to create a custom run level that starts the desired daemons for a
particular server role (i.e. Oracle database server or Sendmail mail server). Administrators can
then enter this runlevel to start the daemons or exit the runlevel to stop the daemons for
maintenance purposes.

Using the GRUB Shell


The displaymem command displays memory statistics. The volume identifier in GRUB follows
the format hd(drive#, partition#) where # starts at 0 for the first drive and partition.

Você também pode gostar