Chapter 9 Linux+

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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

ps

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

renice -12

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

Is a rogue process

*Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system? a. /var/spool/cron/(the user's login name) b. /var/spool/cron c. /etc/crontab d. /etc/cron/(the user's login name)

/var/spool/cron/(the user's login name)

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

9

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

Crontab

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

False

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

Schedule processes to run at a single instance in the future

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

There is a question mark in the TTY column

*As daemon processes are not associated with terminals, you must use the -e switch with the ps command to view them. True or False?

True

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

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

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

b. jobs

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

b. top

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

c. Parent process ID

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

daemon process

*Which process will always have a PID of 1 and a PPID of 0? a. The kernal itself b. top c. ps d. init

init

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

b. -20 and 19

*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 and /etc/cron.deny exist, only users listed in the former can use the cron command and any listed in the latter are denied access to the cron command. c. If /etc/cron.allow exists, only users listed in it can use the cron command. d. 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.

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. d. 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.

*The killall command terminates _____________. a. all instances of a process with the same name. b. all instances of a process with the same priority c. all instances of a process with the same PPID d. all instances of a process with the same PID

a. all instances of a process with the same name.

*The term used to describe a process spawning or initiating another process is referred to as_________. a. forking b. a child process c. branching d. parenting

a. forking


Kaugnay na mga set ng pag-aaral

Biology 1010K Chapter 11: Evolution and It's Processes - Study Guide (Minus Chapter Terms)

View Set

Chapter 1: Intro to Supply Chain Management

View Set

High Risk Pregnancy (Sherpath wk 5)

View Set

Gen Bio 2 - Ecology (Unit 4) --- QUESTIONS

View Set

ap economics, unit 2 multiple choice

View Set

12 DANH TỪ BỎ ĐUÔI 'f', 'fe' ĐẶC BIỆT KHI CHIA DẠNG SỐ NHIỀU

View Set