Deck 10: Managing Linux Processes

Full screen (f)
exit full mode
Question
After a process has been started, you can change its priority by using the renice command.
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
When you append a(n)____ to a command, the command is run in a background process.

A)&
B)$
C)#
D)%
Question
The ____ option to the ps command displays all processes that do not run on terminals, but not processes that run on terminals.

A)-f
B)x
C)a
D)-l
Question
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
Question
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
Question
The ____ field in a cron table contains the absolute pathname to the command to be executed.

A)first
B)second
C)fifth
D)sixth
Question
You can execute ____ main types of Linux commands.

A)2
B)3
C)4
D)5
Question
There are ____ different kill signals that the kill command can send to a certain process.

A)16
B)32
C)64
D)128
Question
The ps command is the only command that can view process information.
Question
The ____ kill signal stops a process then restarts it with the same PID.

A)SIGINT
B)SIGQUIT
C)SIGHUP
D)SIGTERM
Question
The killall command uses the PID to kill a process.
Question
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)/
Question
Each process can start an unlimited number of other processes.
Question
When killing a background job with the kill command, you must prefix the background job IDs by a(n)____.

A)&
B)#
C)$
D)%
Question
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
Question
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
Question
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.
Question
A system process that is not associated with a terminal is called a(n)____.

A)daemon
B)user
C)parent
D)startup
Question
Processes are started with a nice value of ____ by default.

A)-20
B)0
C)1
D)19
Question
What is forking?
Question
Describe the system cron table. How it is organized, and what information may be contained within it?
Question
Match between columns
Daemon used to schedule a command to execute once in the future.
PPID
Daemon used to schedule a command to execute once in the future.
trapping
Daemon used to schedule a command to execute once in the future.
at daemon
Daemon used to schedule a command to execute once in the future.
/var/spool/at
Daemon used to schedule a command to execute once in the future.
PID
Daemon used to schedule a command to execute once in the future.
/var/spool/cron
Daemon used to schedule a command to execute once in the future.
cron daemon
Daemon used to schedule a command to execute once in the future.
/etc/crontab
Daemon used to schedule a command to execute once in the future.
program
A process's identifier that allows the kernel to identify it uniquely.
PPID
A process's identifier that allows the kernel to identify it uniquely.
trapping
A process's identifier that allows the kernel to identify it uniquely.
at daemon
A process's identifier that allows the kernel to identify it uniquely.
/var/spool/at
A process's identifier that allows the kernel to identify it uniquely.
PID
A process's identifier that allows the kernel to identify it uniquely.
/var/spool/cron
A process's identifier that allows the kernel to identify it uniquely.
cron daemon
A process's identifier that allows the kernel to identify it uniquely.
/etc/crontab
A process's identifier that allows the kernel to identify it uniquely.
program
The location of system cron tables.
PPID
The location of system cron tables.
trapping
The location of system cron tables.
at daemon
The location of system cron tables.
/var/spool/at
The location of system cron tables.
PID
The location of system cron tables.
/var/spool/cron
The location of system cron tables.
cron daemon
The location of system cron tables.
/etc/crontab
The location of system cron tables.
program
Directory storing the shell environment and scheduled commands.
PPID
Directory storing the shell environment and scheduled commands.
trapping
Directory storing the shell environment and scheduled commands.
at daemon
Directory storing the shell environment and scheduled commands.
/var/spool/at
Directory storing the shell environment and scheduled commands.
PID
Directory storing the shell environment and scheduled commands.
/var/spool/cron
Directory storing the shell environment and scheduled commands.
cron daemon
Directory storing the shell environment and scheduled commands.
/etc/crontab
Directory storing the shell environment and scheduled commands.
program
Identifies the process that started another process.
PPID
Identifies the process that started another process.
trapping
Identifies the process that started another process.
at daemon
Identifies the process that started another process.
/var/spool/at
Identifies the process that started another process.
PID
Identifies the process that started another process.
/var/spool/cron
Identifies the process that started another process.
cron daemon
Identifies the process that started another process.
/etc/crontab
Identifies the process that started another process.
program
The location of user cron tables.
PPID
The location of user cron tables.
trapping
The location of user cron tables.
at daemon
The location of user cron tables.
/var/spool/at
The location of user cron tables.
PID
The location of user cron tables.
/var/spool/cron
The location of user cron tables.
cron daemon
The location of user cron tables.
/etc/crontab
The location of user cron tables.
program
Ignoring a kill signal.
PPID
Ignoring a kill signal.
trapping
Ignoring a kill signal.
at daemon
Ignoring a kill signal.
/var/spool/at
Ignoring a kill signal.
PID
Ignoring a kill signal.
/var/spool/cron
Ignoring a kill signal.
cron daemon
Ignoring a kill signal.
/etc/crontab
Ignoring a kill signal.
program
Daemon used to schedule a command to execute repeatedly in the future.
PPID
Daemon used to schedule a command to execute repeatedly in the future.
trapping
Daemon used to schedule a command to execute repeatedly in the future.
at daemon
Daemon used to schedule a command to execute repeatedly in the future.
/var/spool/at
Daemon used to schedule a command to execute repeatedly in the future.
PID
Daemon used to schedule a command to execute repeatedly in the future.
/var/spool/cron
Daemon used to schedule a command to execute repeatedly in the future.
cron daemon
Daemon used to schedule a command to execute repeatedly in the future.
/etc/crontab
Daemon used to schedule a command to execute repeatedly in the future.
program
An executable file on the hard disk that can be run when you execute it.
PPID
An executable file on the hard disk that can be run when you execute it.
trapping
An executable file on the hard disk that can be run when you execute it.
at daemon
An executable file on the hard disk that can be run when you execute it.
/var/spool/at
An executable file on the hard disk that can be run when you execute it.
PID
An executable file on the hard disk that can be run when you execute it.
/var/spool/cron
An executable file on the hard disk that can be run when you execute it.
cron daemon
An executable file on the hard disk that can be run when you execute it.
/etc/crontab
An executable file on the hard disk that can be run when you execute it.
program
Question
Processes that have encountered an error during execution and continuously uses up system resources are referred to as ____________________ processes.
Question
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.
Question
The amount of time a process has to use the CPU is called a(n)____________________ .
Question
The ____________________ can be used to affect the process priority indirectly.
Question
How does the nice value affect process priority? How and why can nice values be altered?
Question
Why would you want to schedule commands? What methods are available for scheduling commands?
Question
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?
Question
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
Question
A(n)____________________ refers to a program that is running in memory and on the CPU.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/32
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 10: Managing Linux Processes
1
After a process has been started, you can change its priority by using the renice command.
True
2
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
3
When you append a(n)____ to a command, the command is run in a background process.

A)&
B)$
C)#
D)%
A
4
The ____ option to the ps command displays all processes that do not run on terminals, but not processes that run on terminals.

A)-f
B)x
C)a
D)-l
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
5
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
Unlock Deck
Unlock for access to all 32 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
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
7
The ____ field in a cron table contains the absolute pathname to the command to be executed.

A)first
B)second
C)fifth
D)sixth
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
8
You can execute ____ main types of Linux commands.

A)2
B)3
C)4
D)5
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
9
There are ____ different kill signals that the kill command can send to a certain process.

A)16
B)32
C)64
D)128
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
10
The ps command is the only command that can view process information.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ kill signal stops a process then restarts it with the same PID.

A)SIGINT
B)SIGQUIT
C)SIGHUP
D)SIGTERM
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
12
The killall command uses the PID to kill a process.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
13
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)/
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
14
Each process can start an unlimited number of other processes.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
15
When killing a background job with the kill command, you must prefix the background job IDs by a(n)____.

A)&
B)#
C)$
D)%
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
16
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
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
17
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
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
18
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 32 flashcards in this deck.
Unlock Deck
k this deck
19
A system process that is not associated with a terminal is called a(n)____.

A)daemon
B)user
C)parent
D)startup
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
20
Processes are started with a nice value of ____ by default.

A)-20
B)0
C)1
D)19
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
21
What is forking?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
22
Describe the system cron table. How it is organized, and what information may be contained within it?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
23
Match between columns
Daemon used to schedule a command to execute once in the future.
PPID
Daemon used to schedule a command to execute once in the future.
trapping
Daemon used to schedule a command to execute once in the future.
at daemon
Daemon used to schedule a command to execute once in the future.
/var/spool/at
Daemon used to schedule a command to execute once in the future.
PID
Daemon used to schedule a command to execute once in the future.
/var/spool/cron
Daemon used to schedule a command to execute once in the future.
cron daemon
Daemon used to schedule a command to execute once in the future.
/etc/crontab
Daemon used to schedule a command to execute once in the future.
program
A process's identifier that allows the kernel to identify it uniquely.
PPID
A process's identifier that allows the kernel to identify it uniquely.
trapping
A process's identifier that allows the kernel to identify it uniquely.
at daemon
A process's identifier that allows the kernel to identify it uniquely.
/var/spool/at
A process's identifier that allows the kernel to identify it uniquely.
PID
A process's identifier that allows the kernel to identify it uniquely.
/var/spool/cron
A process's identifier that allows the kernel to identify it uniquely.
cron daemon
A process's identifier that allows the kernel to identify it uniquely.
/etc/crontab
A process's identifier that allows the kernel to identify it uniquely.
program
The location of system cron tables.
PPID
The location of system cron tables.
trapping
The location of system cron tables.
at daemon
The location of system cron tables.
/var/spool/at
The location of system cron tables.
PID
The location of system cron tables.
/var/spool/cron
The location of system cron tables.
cron daemon
The location of system cron tables.
/etc/crontab
The location of system cron tables.
program
Directory storing the shell environment and scheduled commands.
PPID
Directory storing the shell environment and scheduled commands.
trapping
Directory storing the shell environment and scheduled commands.
at daemon
Directory storing the shell environment and scheduled commands.
/var/spool/at
Directory storing the shell environment and scheduled commands.
PID
Directory storing the shell environment and scheduled commands.
/var/spool/cron
Directory storing the shell environment and scheduled commands.
cron daemon
Directory storing the shell environment and scheduled commands.
/etc/crontab
Directory storing the shell environment and scheduled commands.
program
Identifies the process that started another process.
PPID
Identifies the process that started another process.
trapping
Identifies the process that started another process.
at daemon
Identifies the process that started another process.
/var/spool/at
Identifies the process that started another process.
PID
Identifies the process that started another process.
/var/spool/cron
Identifies the process that started another process.
cron daemon
Identifies the process that started another process.
/etc/crontab
Identifies the process that started another process.
program
The location of user cron tables.
PPID
The location of user cron tables.
trapping
The location of user cron tables.
at daemon
The location of user cron tables.
/var/spool/at
The location of user cron tables.
PID
The location of user cron tables.
/var/spool/cron
The location of user cron tables.
cron daemon
The location of user cron tables.
/etc/crontab
The location of user cron tables.
program
Ignoring a kill signal.
PPID
Ignoring a kill signal.
trapping
Ignoring a kill signal.
at daemon
Ignoring a kill signal.
/var/spool/at
Ignoring a kill signal.
PID
Ignoring a kill signal.
/var/spool/cron
Ignoring a kill signal.
cron daemon
Ignoring a kill signal.
/etc/crontab
Ignoring a kill signal.
program
Daemon used to schedule a command to execute repeatedly in the future.
PPID
Daemon used to schedule a command to execute repeatedly in the future.
trapping
Daemon used to schedule a command to execute repeatedly in the future.
at daemon
Daemon used to schedule a command to execute repeatedly in the future.
/var/spool/at
Daemon used to schedule a command to execute repeatedly in the future.
PID
Daemon used to schedule a command to execute repeatedly in the future.
/var/spool/cron
Daemon used to schedule a command to execute repeatedly in the future.
cron daemon
Daemon used to schedule a command to execute repeatedly in the future.
/etc/crontab
Daemon used to schedule a command to execute repeatedly in the future.
program
An executable file on the hard disk that can be run when you execute it.
PPID
An executable file on the hard disk that can be run when you execute it.
trapping
An executable file on the hard disk that can be run when you execute it.
at daemon
An executable file on the hard disk that can be run when you execute it.
/var/spool/at
An executable file on the hard disk that can be run when you execute it.
PID
An executable file on the hard disk that can be run when you execute it.
/var/spool/cron
An executable file on the hard disk that can be run when you execute it.
cron daemon
An executable file on the hard disk that can be run when you execute it.
/etc/crontab
An executable file on the hard disk that can be run when you execute it.
program
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
24
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 32 flashcards in this deck.
Unlock Deck
k this deck
25
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 32 flashcards in this deck.
Unlock Deck
k this deck
26
The amount of time a process has to use the CPU is called a(n)____________________ .
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
27
The ____________________ can be used to affect the process priority indirectly.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
28
How does the nice value affect process priority? How and why can nice values be altered?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
29
Why would you want to schedule commands? What methods are available for scheduling commands?
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
30
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 32 flashcards in this deck.
Unlock Deck
k this deck
31
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
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
32
A(n)____________________ refers to a program that is running in memory and on the CPU.
Unlock Deck
Unlock for access to all 32 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 32 flashcards in this deck.