Review 3-3 Linux+ Processes
To kill a process running in the background, you must place a % character before its process ID?. True False
False
As daemon processes are not associated with terminals, you must use an options such as -e with the ps command to view them. True False
True
Where are individual user tasks scheduled to run with the cron daemon stored on a Fedora system? /etc/crontab /var/spool/cron/username /etc/cron/username /var/spool/cron
/var/spool/cron/username
What kill level signal cannot be trapped? 1 3 9 15
9
What creates a process under Linux? Execution of a command utility. Running a shell script. Running a shell builtin command. All of the above Both answers A and B are correct.
Both answers A and B are correct.
What system calls are made when you run a program from the command line? fork() and exec() init() and bash() process() and exec() ps() and init()
fork() and exec()
Which process has a PID of 1 and a PPID of 0? The operating system kernel init/systemd Ps Top
init/systemd
Which command can be used to see processes running in the background? Bg Jobs Ps -% Fg
jobs
What command shows a list of the current processes Linux is executing? ps process set get
ps
A process spawning or initiating another process is referred to as________. A child process Forking Branching Parenting
Forking
Every process has a process ID and a __________. Parent process ID Fork process Daemon Child process
Parent process ID
What is a PID? Personal Identification code Process Identification Number Program Initiation Designation Number Parent Identification Number
Process Identification Number
What command is used to view and modify user jobs scheduled to run with cron? crontab cron ps sched
crontab
The pkill command terminates ____________. All instances of a process with the same PPID. All instances of a process with the same name matched by a regular expression. All instances of a process with the same PID. All instances of a process with the same priority.
All instances of a process with the same name matched by a regular expression.
Which of the following statements is true? (Choose all that apply) 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. 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. 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.
A runaway process that is faulty and consuming mass amount of system resources _________________. Is a zombie process Is an orphaned process Has a PPID of Z Is a rogue process.
Is a rogue process.
When you run the ps command, how are daemons process recognized? The terminal is listed as tty0 There is a question mark in the TTY column There is an asterisk in the STIME column. 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? This cannot happen once a process is executing; it can be done only when the command is started by placing an ampersand (&) after it. This cannot happen; only daemon processes can run in the background. You can use the ps command. You can use the Ctrl+z key combination and the bg command.
You can use the Ctrl+z key combination and the bg command.
Which command entered without arguments is used to display a list of processes running in the currents shell? Pgrep List Pid Ps
ps
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? Ps Top Ps -elf Pstree
Top
What is the symbol that creates a pipe between commands? Greater than sign (>) Less than sign (<) Tilde (~) Colon (:) None of the above
None of the above
Nice values are used to affect process priorities using a range betwen ________________________. 0 and 20 0 and -19 -19 and 20 -20 and 19
-20 and 19
What is the name of a process not associated with a terminal? Child process. Daemon process. User process Parent process
Daemon process.
The at command is used to ________. Schedule processes to run periodically in the background. Schedule processes to run periodically on a recurring basis in the future. Schedule processes to run at a single instance in the future. Schedule processes to run in the foreground.
Schedule processes to run at a single instance in the future.
A Linux process is a program that is running in memory and the CPU. True False
True
What is the name of the root process under Linux? root init parent login
init
Which of the following commands will most likely increase the chance of a process receiving more time slices? Renice 0 Renice 15 Renice -12 Renice 19
renice -12