Chapter 9 Review Questions

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

The pkill command terminates _________. a. all instances of a process with the same PPID b. all instances of a process with the same PID c. all instances of a process with the same priority d. all instances of a process with the same name matched by a regular expression

all instances of a process with the same name matched by a regular expression

What is the name given to a process not associated with a terminal? a. child process b. parent process c. user process d. daemon process

daemon process

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?

r

Which of the following commands will most likely increase the chance of a process receiving more time slices? a. renice 0 b. renice 15 c. renice -12 d. renice 19

renice -12

A runaway process that is faulty and consuming mass amounts of system resources _________. a. zombie process b. orphaned process c. has a PPID of Z d. rogue process

rogue process

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?

/etc/cron.deny

In which directory would a system administrator store scripts that should be run monthly by the cron daemon?

/etc/cron.monthly

Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system? a. /etc/crontab b. /etc/cron/username c. /var/spool/cron d. /var/spool/cron/username

/etc/cron/username

Where are scheduled commands stored on Ubuntu Linux systems?

/var/spool/cron/atjobs

A system administrator wants to schedule a task to run at 11 pm, but knows that she will not be in the office at that time. Which of the following commands can she use to schedule this task to run that night while she is at home?

at

Which of the following commands can be used to only show jobs that have been paused?

jobs -s

While the top command is running, what key can be pressed to change the nice value of a process?

r

The at command is used to _________. a. schedule processes to run periodically in the background b. schedule processes to run periodically on a recurring basis in the future c. schedule processes to run at a single instance in the future d. schedule processes to run in the foreground

schedule processes to run at a single instance in the future

Nice values are used to affect process priorities using a range between _________. a. 0 and 20 b. 0 and -19 c. −19 and 20 d. −20 and 19

−20 and 19

A process spawning or initiating another process is referred to as _________. a. a child process b. forking c. branching d. parenting

forking

Which process has a PID of 1 and a PPID of 0? a. the kernel itself b. ps c. init/systemd d. top

init/systemd

As daemon processes are not associated with terminals, you must use an option such as -e alongside the ps command to view them. True False

True

Which command is used to gain real-time information about processes running on the system, with the most processor-intensive processes appearing at the beginning of the list? a. ps b. ps -elf c. top d. pstree

top

Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority?

19

What kill level signal cannot be trapped? a. 1 b. 9 c. 3 d. 15

9

To kill a process running in the background, you must place a % character before its process ID. True False

False

Which of the following statements is true? a. If /etc/at.allow exists, only users listed in it can use the at command. b. If /etc/cron.allow exists, only users listed in it can use the cron command. c. If /etc/cron.deny exists and /etc/cron.allow does not exist, any user not listed in /etc/cron.deny can use the cron command. d. If /etc/cron.allow and /etc/cron.deny exist, only users listed in the former can use the cron command, and any users listed in the latter are denied access to the cron command. e. If a user is listed in both /etc/cron.allow and /etc/cron.deny, then /etc/cron.deny takes precedence and the user cannot access the crontab command.

If /etc/at.allow exists, only users listed in it can use the at command. If /etc/cron.allow exists, only users listed in it can use the cron command. If /etc/cron.deny exists and /etc/cron.allow does not exist, any user not listed in /etc/cron.deny can use the cron command.

When you run the ps command, how are daemon processes recognized? a. The terminal is listed as tty0. b. There is a question mark in the TTY column. c. There is an asterisk in the STIME column. d. There is a "d" for daemon in the terminal identification column.

There is a question mark in the TTY column.

How can you bypass the wait function and send a user process to the background? a. This cannot happen once a process is executing; it can be done only when the command is started by placing an ampersand (&) after it. b. This cannot happen; only daemon processes can run in the background. c. You can use the ps command. d. You can use the Ctrl+z key combination and the bg command.

You can use the Ctrl+z key combination and the bg command.

What command is used to view and modify user jobs scheduled to run with cron? a. crontab b. cron c. ps d. sched

crontab

Which command can be used to see processes running in the background? a. bg b. jobs c. ps -% d. fg

jobs

Every process has a process ID and a _________. a. fork process b. daemon c. child process d. parent process

parent process

Which command entered without arguments is used to display a list of processes running in the current shell? a. pgrep b. list c. pid d. ps

ps


Ensembles d'études connexes

Chapter 5 Frameworks for Health Promotion, Disease Prevention, and Risk Reduction

View Set

Florida Statutes, Rules, and Regulations Common to All Lines

View Set

Mathematics Methods and Instruction for Students with Mild/Moderate Exceptionalities - D237

View Set

Fundamentals of Success - Legal and Ethical Issues

View Set