You are on page 1of 4

Chapter 5 Review Questions

SUSE Linux Networking

1. Which of the following terms refers to a system service that does not run on a terminal?
a) Program
b) User Process
c) Daemon Process
d) Child Process
2. What is the PID of init?
A: 1
3. Which of the following statements are true? (Choose all that apply.)
a) A parent process may only have one child process.
b) Each process is given a PPID that is used to uniquely identify it on the system.
c) A child process may only have one parent process.
d) All background processes have a PID and a job ID.
4. Which of the following commands can quickly identify the child processes started by a particular daemon?
a) top
b) lsof
c) ps
d) pstree
5. To what processes are regular users allowed to send kill signals?
A: __________
6. You have just run the ps aux command and notice that most daemons have an S in the STAT column. What does this
mean?
A: It means that it is sleeping and waiting for an event to happen
7. What key can you press in the top command to send the process a signal?
a) s
b) k
c) R
d) N
8. What can you type at a command prompt to run the updatedb command in the background?
A: updatedb &
9. Which of the following key combinations can you use to pause a foreground process, such that it may be send to the
background with the bg command?
a) Ctrl+c
b) Ctrl+p
c) Ctrl+z
d) Ctrl+r

Robert Horning
1
Chapter 5 Review Questions
SUSE Linux Networking

10. Which of the following kill commands may be used to send the second background job a SIGINT?
a) kill -2 %2
b) kill -1 -b 2
c) kill -9 %2
d) kill -15 2
11. If you do not specify the type of signal when using the kill or killall commands, which signal is used by default?
a) SIGHUP
b) SIGINT
c) SIGKILL
d) SlGTERM
12. What command could you use to change the priority of a process (PlD=592) to run with the highest priority?
A: renice -20 592 or renice –n -20 592
13. You have a script that is used to remove temporary files and would like this script to run on a daily basis. What
directory could you place this script in to have the cron daemon execute it each day?
A: __________
14. What command could a regular user use to edit their crontab?
A: crontab -e
15. What lines would you add to your crontab to schedule the /bin/false command to run at 2:50 p.m. from Monday to
Friday?
A: __________
16. What command can you use to run the contents of the file cleanup at noon?
A: at noon -f cleanup
17. Which command can you use to view at jobs that have been scheduled on your system?
a) at --view
b) atq
c) atrm
d) cron --view
18. What is the config file used by GRUB?
a) /boot/grub-install
b) /etc/grub.config
c) /boot/grub,config
d) /boot/grub/menu.lst
19. You notice the line root(hd0, 2) in your GRUB configuration file. What does this line indicate?
a) The root file system for the operating system resides on the third partition on the second hard disk in the
computer
b) The root file system for the operating system resides on the third partition on the first hard disk in the computer
c) The root file system for the operating system resides on the first partition on the second hard disk in the
computer
d) The root file system for the operating system resides on the first partition on the third hard disk in the computer

Robert Horning
2
Chapter 5 Review Questions
SUSE Linux Networking

20. You have just modified the /etc/lilo.conf file but your changes have not taken effect. What command must you run
to rewrite the LlLO boot loader to the MBR?
A: LILO
21. What action in thE /etc/inittab file is used to determine the default runlevel at system initialization?
A: __________
22. What is the default runlevel in SLES?
A: 3
23. What runlevel loads all networking daemons (including NFS) but does not start a display manager?
a) 1
b) 2
c) 3
d) 5
24. What command(s) could you type at a command prompt as the root user to change your runlevel to Single User
Mode?
A: init 1, init s, init S, telinit 1, telinit s, telinit S
25. 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
26. 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
27. 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/ssnd 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
28. What line can you add to the /etc/syslog.conf file to log messages of priority crit from the Linux kernel to
/var/log/ker nlog?
a) kern.crit /var/log/kernlog
b) kern.=crit /var/log/kernlog
c) kern.crit -/var/loglkernlog
d) kern.crit |/var/log/kernlog

Robert Horning
3
Chapter 5 Review Questions
SUSE Linux Networking

29. Which of the following commands may be used to display boot error messages? (Choose all that apply.)
a) dmesg | less
b) less /var/log/boot
c) less /var/log/wtmp
d) less /var/log/boot.leg
30. You have added the following lines to the /etc/logrotated/mylog file:
/var/log/mylog {
maxage 44
rotate 5
notifempty
compress
}

Which of the following statements are true about the rotation of the /var/log/mylog file? (Choose all that apply.)
a) A maximum of five archive logs will be kept.
b) A maximum of 44 archive logs will be kept.
c) The log file will be rotated if the file is empty.
d) The log file will be compressed after being rotated.
31. Which of the following can be used to obtain detailed performance statistics regarding virtual memory usage?
(Choose all that apply.)
a) Files stored within the /proc directory.
b) The iostat command.
c) The vmstat command.
d) The sar command.
32. Which of the following commands can be used to tune system parameters that are stored within the /proc
directory?
a) sysctl
b) iostat
c) sar
d) hdparm

Robert Horning
4

You might also like