Module 9 Live Virtual Machine Labs 1-4 Flashcards
lab 9-1
Which directory stores the cron configuration file?
/etc/crond
/etc/cron
/etc/
/etc/mail
/etc/
In context of cron, which of the following is not the correct directory name?
/etc/cron.hourly/
/etc/cron.daily/
/etc/cron.monthly/
/etc/cron.yearly/
/etc/cron.weekly/
/etc/cron.yearly/
Which command is used to schedule jobs?
cron
schedule
atq
at
at
Which command is equivalent to the atq command?
at -l
at -c
at -f
at -a
at -l
Which command is equivalent to the atrm command?
at -c
at -l
at -a
at -d
at -f
at -d
lab 9-2
Which of the following attributes are associated with a process? [Choose all that apply.]
Current directory PWD
Parent process ID
Process ID
File descriptor table
Process ID
Parent process ID
Current directory PWD
File descriptor table
You want to kill all process IDs of a specific process with a single command. Which command should you use?
sleep
killall
pidof
kill
killall
Which of the following is used to create a background process?
%
$
#
@
&
&
Which command should you run to list the background processes?
pid
pidof
jobs
ps
jobs
Which command will bring a background process in foreground?
fg
foreground
foreg
fground
fg
lab 9-3
The ________ file system is a virtual file system that is available in CentOS.
/tmp
/home
/proc
/swap
/proc
To view the virtual regions being used, you should use the ________ command.
maps
top
ps
vmstat
maps
To displays the uptime of a process, you should use the ______ command.
top
vmstat
uptime
ps
maps
uptime
To display the processes for the current shell, you should use the ____ command.
top
vmstat
maps
ps
uptime
ps
Which parameter can you use with the ps command to display the active processes? [Choose all that apply.]
-n
-A
-m
-l
-e
-A
-e