Module 9 Live Virtual Machine Labs 1-4 Flashcards

1
Q

lab 9-1

Which directory stores the cron configuration file?

/etc/crond
/etc/cron
/etc/
/etc/mail

A

/etc/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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/

A

/etc/cron.yearly/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command is used to schedule jobs?

cron
schedule
atq
at

A

at

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command is equivalent to the atq command?

at -l
at -c
at -f
at -a

A

at -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which command is equivalent to the atrm command?

at -c
at -l
at -a
at -d
at -f

A

at -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

Process ID
Parent process ID
Current directory PWD
File descriptor table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

You want to kill all process IDs of a specific process with a single command. Which command should you use?

sleep
killall
pidof
kill

A

killall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following is used to create a background process?

%
$
#
@
&

A

&

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which command should you run to list the background processes?

pid
pidof
jobs
ps

A

jobs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which command will bring a background process in foreground?

fg
foreground
foreg
fground

A

fg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

lab 9-3

The ________ file system is a virtual file system that is available in CentOS.

/tmp
/home
/proc
/swap

A

/proc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

To view the virtual regions being used, you should use the ________ command.

maps
top
ps
vmstat

A

maps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

To displays the uptime of a process, you should use the ______ command.

top
vmstat
uptime
ps
maps

A

uptime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

To display the processes for the current shell, you should use the ____ command.

top
vmstat
maps
ps
uptime

A

ps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which parameter can you use with the ps command to display the active processes? [Choose all that apply.]

-n
-A
-m
-l
-e

A

-A
-e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

lab 9-4

Which command will list all active processes that are running on a Linux system?

ps
top
nice
list

A

top

17
Q

Which command will list the processes for a specific user?

ps
list
nice
top

A

ps

18
Q

Which command should be used to change the priority of a process?

list
nice
ps
top

A

nice

19
Q

Which command is used to change the priority of an active process?

renice
ps
top
nice

A

renice

20
Q

What is the default priority of a process?

-19
20
19
-20
0

A

0