Deck 9: Managing Linux Processes
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/45
Play
Full screen (f)
Deck 9: Managing Linux Processes
1
The ____ kill signal stops a process and then restarts it with the same PID.
A) SIGINT
B) SIGQUIT
C) SIGHUP
D) SIGTERM
A) SIGINT
B) SIGQUIT
C) SIGHUP
D) SIGTERM
C
2
Most commands such as ls, find, and grep are binary programs that exist on the filesystem until executed. _________________________
True
3
You can execute ____ main types of Linux commands.
A) two
B) three
C) four
D) five
A) two
B) three
C) four
D) five
B
4
Each process can start an unlimited number of other processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
5
The init daemon has a PID of 0. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
6
To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.
A) -f
B) -l
C) -a
D) -e
A) -f
B) -l
C) -a
D) -e
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
7
The ps command is the only command that can view process information.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
8
When killing a background job with the kill command, you must prefix the background job IDs by a(n) ____.
A) &
B) #
C) $
D) %
A) &
B) #
C) $
D) %
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
9
After a process has been started, you can change its priority by using the renice command.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
10
The killall command uses the PID to kill a process.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ kill signal terminates a process by taking the process information in memory and saving it to a file called core on the hard disk in the current working directory.
A) SIGINT
B) SIGQUIT
C) SIGKILL
D) SIGTERM
A) SIGINT
B) SIGQUIT
C) SIGKILL
D) SIGTERM
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
12
A value of 0 for a process priority indicates low priority. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
13
In the output of the ps -l command, the ____ column is the most valuable to systems administrators because it indicates what the process is currently doing.
A) process state
B) process flag
C) process priority
D) PID
A) process state
B) process flag
C) process priority
D) PID
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
14
If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
15
The ____ option to the ps command displays all processes that do not run on terminals.
A) -f
B) x
C) a
D) -l
A) -f
B) x
C) a
D) -l
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
16
The SIGINT kill signal is the default kill signal used by the kill command. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
17
A system process that is not associated with a terminal is called a(n) ____ process.
A) daemon
B) user
C) parent
D) startup
A) daemon
B) user
C) parent
D) startup
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
18
When you append a(n) ____ to a command, the command is run in a background process.
A) &
B) $
C) #
D) %
A) &
B) $
C) #
D) %
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
19
While a process is waiting for its parent process to release the PID, the process is said to be in a(n) zombie state. _________________________
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
20
There are ____ different kill signals that the kill command can send to a certain process.
A) 16
B) 32
C) 64
D) 128
A) 16
B) 32
C) 64
D) 128
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
21
Processes that have encountered an error during execution and continuously uses up system resources are referred to as ____________________ processes.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
22
The ____________________ can be used to affect the process priority indirectly.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
23
Processes are started with a nice value of ____ by default.
A) -20
B) 0
C) 1
D) 19
A) -20
B) 0
C) 1
D) 19
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
24
After a background process has been started, it can be moved to the foreground by using the ____ command.
A) b2f
B) fgd
C) fg
D) fgnd
A) b2f
B) fgd
C) fg
D) fgnd
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
25
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Daemon used to schedule a command to execute repeatedly in the future.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Daemon used to schedule a command to execute repeatedly in the future.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
26
A(n) ____________________ refers to a program that is running in memory and on the CPU.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
27
The ____ field in a cron table contains the absolute pathname to the command to be executed.
A) first
B) second
C) fifth
D) sixth
A) first
B) second
C) fifth
D) sixth
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
28
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
The location of system cron tables.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
The location of system cron tables.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
29
In a process referred to as ____________________, when executing compiled programs or shell scripts, the BASH shell that interprets the command you typed creates a new BASH shell.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
30
To create or edit a user cron table, you can use the ____ option to the crontab command.
A) -u
B) -c
C) -f
D) -e
A) -u
B) -c
C) -f
D) -e
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
31
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Directory storing the shell environment and scheduled commands.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Directory storing the shell environment and scheduled commands.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
32
When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n) ____ symbol.
A) *
B) +
C) -
D) /
A) *
B) +
C) -
D) /
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
33
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Identifies the process that started another process.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Identifies the process that started another process.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
34
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Daemon used to schedule a command to execute once in the future.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Daemon used to schedule a command to execute once in the future.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
35
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
An executable file on the hard disk that can be run when you execute it.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
An executable file on the hard disk that can be run when you execute it.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
36
To display a list of at Job IDs, you can specify the ____ option to the at command.
A) -l
B) -u
C) -a
D) -d
A) -l
B) -u
C) -a
D) -d
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
37
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
A process's identifier that allows the kernel to identify it uniquely.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
A process's identifier that allows the kernel to identify it uniquely.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
38
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Ignoring a kill signal.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
Ignoring a kill signal.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
39
The amount of time a process has to use the CPU is called a(n) ____________________.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
40
Match each term with the correct statement below.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
The location of user cron tables.
a.cron daemon
f.PID
b.program
g./etc/crontab
c./var/spool/cron
h./var/spool/at
d.trapping
i.at daemon
e.PPID
The location of user cron tables.
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
41
How does the nice value affect process priority? How and why can nice values be altered?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
42
Describe the system cron table. How it is organized, and what information may be contained within it?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
43
What is forking?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
44
Why would you want to schedule commands? What methods are available for scheduling commands?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck
45
Describe the purpose the process state column displayed by the ps -l command. What values may appear in this column, and what do these values indicate?
Unlock Deck
Unlock for access to all 45 flashcards in this deck.
Unlock Deck
k this deck