Midterm 10-15 (Latest Update )
Anatomy & Physiology II with Lab | Review
Questions with Verified Answers | 100%
Correct | highly Grade A - Chamberlain
Mario, a technician, entered the pgrep -u sally command and received the following
result:
1036
Which of the following describes the result?
-The PID for the process named sally.
-The process ID of the process that was executed by the user sally.
-The permission ID for the user sally.
-The UID for the user sally located by searching the entire file system for active
processes. - CORRECT ANSWERS--The process ID of the process that was executed
by the user sally.
Which command displays all the processes that are running in the most detail?
ps -e
ps -A
ps -a
ps -ef - CORRECT ANSWERS--ps -ef
Which command displays the PPID?
ps -f
ps -A
ps
ps -u - CORRECT ANSWERS--ps -f
You want to view all currently-running processes that include getty in the process name.
Which command would you use?
ps -A | grep getty
ps -A | find getty
ps -a | find getty
ps -a | grep getty - CORRECT ANSWERS--ps -A | grep getty
,Which command would you use to look for a potential resource hog on a workstation?
uptime
free
top
renice - CORRECT ANSWERS--top
You are experiencing some slowness and want to view an interactive listing of running
processes to see if there is a process that is causing the problem.
Which of the following commands displays an interactive listing of running processes as
illustrated below?(10.1.11)
free
uptime
top
pstree - CORRECT ANSWERS--top
(10.2.12)You have several processes running in the background, as shown by the jobs
command below:
[1]+ Running gedit &[2]+ Stopped crontab e
What command will bring the gedit program to the foreground?
fg [1]
fg edit
fg 1
bg 1 - CORRECT ANSWERS--fg 1
You need to send a process to the foreground. Which command should you enter to
identify the job ID for the process?
jobs
top
ps
nice - CORRECT ANSWERS--jobs
A developer calls you with a problem. They were trying to debug a new daemon and
mistakenly placed it on the production machine instead of on a lab machine. To ensure
that the CPU gives preference to other processes, you need to lower the daemon's
priority. The PID number is 2345.
Which command would you use to decrease the daemon's priority?
nice -n 0 2345
renice -n 10 2345
renice -n 0 2345
renice -n -10 2345 - CORRECT ANSWERS--renice -n 10 2345
,A developer calls you with a problem. She was trying to debug a new daemon and
mistakenly placed it on the production machine instead of on a lab machine. It has now
entered runaway mode. The PID number is 2345. She attempted to stop the process
with the standard kill command, but it had no effect.
Which command would you use to assure that the process will terminate?
kill -NOW 2345
kill 2345 -NOW
kill 2345 -9
kill -9 2345 - CORRECT ANSWERS--kill -9 2345
What is the result of the nohup gedit & command?
gedit will start in the background and terminate after logging out of the shell.
gedit will start in the foreground and terminate after logging out of the shell.
gedit will start in the background and persist in the background after logging out of the
shell.
gedit will start after logging out of the shell. - CORRECT ANSWERS--gedit will start in
the background and persist in the background after logging out of the shell.
After a severe lightning strike nearby, a number of processes seem to be running on the
server in runaway mode.
What utility would terminate these processes by name and not just by process ID
number?
down
endall
closeproc
killall - CORRECT ANSWERS--killall
The /sbin/grpck process is not responding and needs to be killed. There are multiple
instances that were spawned and need to be terminated.
Which of the following commands will terminate all instances of the grpck process?
ps -A | grep grpck
pkill -SIGTERM -f grpck
pkill -HUP 2583
ps aux | grep "grpck" - CORRECT ANSWERS--pkill -SIGTERM -f grpck
(10.3.11)Which of the following statements best describes the effects of having only the
gshant user account listed in the /etc/at.allow file?
All users but gshant can use the at command.
Only root can use the at command.
Only gshant can use the at command.
, Only gshant and root can use the at command. - CORRECT ANSWERS--Only gshant
and root can use the at command.
Which command could you use to verify whether a crontab file exists for the thobbs
user?
:
crontab -l -u thobbs
crontab -e -u thobbs
crontab -a -u thobbs
crontab -r -u thobbs - CORRECT ANSWERS--crontab -l -u thobbs
Which file should you edit if you want to permit specific users to edit their respective
crontab file but deny all other users on the system from editing their crontab file?
/etc/cron.deny
/etc/cron.allow
/etc/crontab
/etc/cron.permit - CORRECT ANSWERS--/etc/cron.allow
You are editing the crontab file and want an entry to run every hour at five minutes past
the hour.
Which of the following entries will accomplish this task?
5 * * * * /home/emmett/example.sh
* 5 * * * /home/emmett/example.sh
* *5 * * /home/emmett/example.sh
* * * 5 * /home/emmett/example.sh
* * * * 5 /home/emmett/example.sh - CORRECT ANSWERS--5 * * * *
/home/emmett/example.sh
You have an anacrontab file with the following settings:
RANDOM_DELAY=35
START_HOURS_RANGE=17-23
#period in days delay in minutes job-identifier command1 5 cron.daily nice run-parts
/etc/cron.daily7 20 cron.weekly nice run-parts /etc/cron.weekly@monthly 50
cron.monthly nice run-parts /etc/cron.monthly
Between which hours of the day will tasks scheduled with anacron start to run?
If the system was down during the time period a weekly task was scheduled to run,
what is the minimum amount of time anacron will wait to run a task after the system is
back up?
If the delay for daily tasks is 5 minutes, how much time will anacron add to the delay of
5 minutes before it runs the scheduled daily task? - CORRECT ANSWERS--Between
5:00 p.m. and 11:00 p.m.
Anatomy & Physiology II with Lab | Review
Questions with Verified Answers | 100%
Correct | highly Grade A - Chamberlain
Mario, a technician, entered the pgrep -u sally command and received the following
result:
1036
Which of the following describes the result?
-The PID for the process named sally.
-The process ID of the process that was executed by the user sally.
-The permission ID for the user sally.
-The UID for the user sally located by searching the entire file system for active
processes. - CORRECT ANSWERS--The process ID of the process that was executed
by the user sally.
Which command displays all the processes that are running in the most detail?
ps -e
ps -A
ps -a
ps -ef - CORRECT ANSWERS--ps -ef
Which command displays the PPID?
ps -f
ps -A
ps
ps -u - CORRECT ANSWERS--ps -f
You want to view all currently-running processes that include getty in the process name.
Which command would you use?
ps -A | grep getty
ps -A | find getty
ps -a | find getty
ps -a | grep getty - CORRECT ANSWERS--ps -A | grep getty
,Which command would you use to look for a potential resource hog on a workstation?
uptime
free
top
renice - CORRECT ANSWERS--top
You are experiencing some slowness and want to view an interactive listing of running
processes to see if there is a process that is causing the problem.
Which of the following commands displays an interactive listing of running processes as
illustrated below?(10.1.11)
free
uptime
top
pstree - CORRECT ANSWERS--top
(10.2.12)You have several processes running in the background, as shown by the jobs
command below:
[1]+ Running gedit &[2]+ Stopped crontab e
What command will bring the gedit program to the foreground?
fg [1]
fg edit
fg 1
bg 1 - CORRECT ANSWERS--fg 1
You need to send a process to the foreground. Which command should you enter to
identify the job ID for the process?
jobs
top
ps
nice - CORRECT ANSWERS--jobs
A developer calls you with a problem. They were trying to debug a new daemon and
mistakenly placed it on the production machine instead of on a lab machine. To ensure
that the CPU gives preference to other processes, you need to lower the daemon's
priority. The PID number is 2345.
Which command would you use to decrease the daemon's priority?
nice -n 0 2345
renice -n 10 2345
renice -n 0 2345
renice -n -10 2345 - CORRECT ANSWERS--renice -n 10 2345
,A developer calls you with a problem. She was trying to debug a new daemon and
mistakenly placed it on the production machine instead of on a lab machine. It has now
entered runaway mode. The PID number is 2345. She attempted to stop the process
with the standard kill command, but it had no effect.
Which command would you use to assure that the process will terminate?
kill -NOW 2345
kill 2345 -NOW
kill 2345 -9
kill -9 2345 - CORRECT ANSWERS--kill -9 2345
What is the result of the nohup gedit & command?
gedit will start in the background and terminate after logging out of the shell.
gedit will start in the foreground and terminate after logging out of the shell.
gedit will start in the background and persist in the background after logging out of the
shell.
gedit will start after logging out of the shell. - CORRECT ANSWERS--gedit will start in
the background and persist in the background after logging out of the shell.
After a severe lightning strike nearby, a number of processes seem to be running on the
server in runaway mode.
What utility would terminate these processes by name and not just by process ID
number?
down
endall
closeproc
killall - CORRECT ANSWERS--killall
The /sbin/grpck process is not responding and needs to be killed. There are multiple
instances that were spawned and need to be terminated.
Which of the following commands will terminate all instances of the grpck process?
ps -A | grep grpck
pkill -SIGTERM -f grpck
pkill -HUP 2583
ps aux | grep "grpck" - CORRECT ANSWERS--pkill -SIGTERM -f grpck
(10.3.11)Which of the following statements best describes the effects of having only the
gshant user account listed in the /etc/at.allow file?
All users but gshant can use the at command.
Only root can use the at command.
Only gshant can use the at command.
, Only gshant and root can use the at command. - CORRECT ANSWERS--Only gshant
and root can use the at command.
Which command could you use to verify whether a crontab file exists for the thobbs
user?
:
crontab -l -u thobbs
crontab -e -u thobbs
crontab -a -u thobbs
crontab -r -u thobbs - CORRECT ANSWERS--crontab -l -u thobbs
Which file should you edit if you want to permit specific users to edit their respective
crontab file but deny all other users on the system from editing their crontab file?
/etc/cron.deny
/etc/cron.allow
/etc/crontab
/etc/cron.permit - CORRECT ANSWERS--/etc/cron.allow
You are editing the crontab file and want an entry to run every hour at five minutes past
the hour.
Which of the following entries will accomplish this task?
5 * * * * /home/emmett/example.sh
* 5 * * * /home/emmett/example.sh
* *5 * * /home/emmett/example.sh
* * * 5 * /home/emmett/example.sh
* * * * 5 /home/emmett/example.sh - CORRECT ANSWERS--5 * * * *
/home/emmett/example.sh
You have an anacrontab file with the following settings:
RANDOM_DELAY=35
START_HOURS_RANGE=17-23
#period in days delay in minutes job-identifier command1 5 cron.daily nice run-parts
/etc/cron.daily7 20 cron.weekly nice run-parts /etc/cron.weekly@monthly 50
cron.monthly nice run-parts /etc/cron.monthly
Between which hours of the day will tasks scheduled with anacron start to run?
If the system was down during the time period a weekly task was scheduled to run,
what is the minimum amount of time anacron will wait to run a task after the system is
back up?
If the delay for daily tasks is 5 minutes, how much time will anacron add to the delay of
5 minutes before it runs the scheduled daily task? - CORRECT ANSWERS--Between
5:00 p.m. and 11:00 p.m.