Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Linux+ Certification Bible.pdf
Скачиваний:
46
Добавлен:
15.03.2015
Размер:
3.78 Mб
Скачать

Chapter 13 Study Guide 423

STUDY GUIDE

The Study Guide section provides you with the opportunity to test your knowledge about the Linux+ exam objectives that are covered in this chapter. The Assessment Questions provide practice for the real exam, and the Scenarios provide practice with real situations. If you get any questions wrong, use the answers to determine the part of the chapter that you should review before continuing.

Assessment Questions

1.An administrator wants to terminate the sendmail process on a Linux server. What is the best way to determine the PID of the sendmail process so it can be killed?

A.pstree

B.ps -ef | grep sendmail

C.ps -u user1

D.kill -9 sendmail

2.An administrator has tried to use the kill command to terminate a running process. Unfortunately, the command didn’t work, and the administrator can still see the process when she uses the ps command to show running processes. What command should be used next to terminate the process?

A.killall

B.ps -k

C. .top

D.kill -9

3.When a Linux system boots, a kernel error message flashes across the screen, but it scrolls by before the user can determine the problem. What log file can be checked to examine boot time messages?

A./var/log/dmesg

B./var/log/messages

C./tmp/messages

D. ./var/log/wtmp

424 Chapter 13 Study Guide

4.What command can be used to send a running process to the background?

A.background

B.fg

C.bg

D.#

5.An administrator wants to kill all instances of the Web server process httpd. What command will most efficiently stop these processes?

A.killall httpd

B.kill -9 httpd

C.kill -SIGHUP httpd

D.stop httpd

6.What is the best command to use to show a full listing of all running processes?

A.top

B.ps -ef

C.ps -au user1

D.ps -f

7.A user has complained that his Web pages haven’t displayed properly since the weekend. What should be checked first to troubleshoot the problem?

A.Use bg to put the Web server process in the background

B.Use ps to see if the Web server process is running

C.Use the top program to examine the httpd process

D.Check maintenance logs to see if the Web server was recently upgraded

8.An administrator needs to see what processes are being run by user jsmith. What is the correct command to use?

A.ps -ef

B.kill jsmith

C.ps -au jsmith

D.top

Chapter 13 Study Guide 425

9.Which log file keeps track of all user logins and logouts?

A./var/log/dmesg

B./var/log/wtmp

C./var/log/last

D./var/messages

10.What is the first process that is run when a Linux system starts, and is responsible for starting all other system processes and services?

A.cron

B.syslogd

C.getty

D.init

11.A user wants to take her current process, which is running in the background, and move it to the foreground. What command will accomplish this task?

A.fg

B.[ctrl-z] bg

C.[ctrl-c] bg

D.kill

12.An administrator has accidentally killed a core process. What is the result of this action?

A.The system could crash.

B.Nothing, it won’t harm the system.

C.The parent of the process will terminate.

D.The process will move into the background.

13.An administrator wants to monitor the /var/log/messages file in real-time to troubleshoot a problem. What is the best command to perform this function?

A.fg /var/log/messages

B.top /var/log/messages

C.tail -f /var/log/messages

D.head /var/log/messages

426 Chapter 13 Study Guide

14.A Linux system that was running on a fault tolerant RAID array has crashed and needs to be rebuilt. How can the technician determine what level of RAID was being used on the hard drive system?

A.By physically examining the hard drives

B.Checking the /var/log/dmesg file

C.Examining the RAID adapter card

D.Checking the hardware documentation

15.When using the ps command to display processes, what number tells you the ID number of the parent process of a particular program?

A.PID

B.PPID

C.TTY

D.TIME

16.An administrator wants to terminate all instances of the sendmail process. What command would best perform this function?

A.killall sendmail

B.kill sendmail

C.kill -9 sendmail

D.kill -9 522

17.An administrator wants to kill a process and have it automatically restart. What kill signal should be sent to perform this function?

A.SIGKILL

B.SIGRESTART

C.SIGHUP

D.SIGTERM

18.While scanning the /var/log/messages file, an administrator notices an error stating an authentication failure for root. What could this mean?

A.The administrator should not have access to the log file

B.Someone has tampered with the log file

C.Nothing, this is a common message

D.Someone tried to break into the root account but failed

Соседние файлы в предмете Операционные системы