Module 9 Test Flashcards

1
Q

Which of the following commands will send a process’s resources to /dev/null to kill the process for process ID 1357?
a. sigkill 1357
b. killall 1357
c. kill -15 1357
d. kill -9 1357

A

d. kill -9 1357

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

Which of the following commands will show the current user cron jobs that have been created for the currently logged in user?
a. cronjobs –list
b. cron –list
c. cron -l
d. crontab -l

A

d. crontab -l

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

Which of the following states describe a process that is waiting for a parent process to release its PID?
a. wait
b. suspended
c. zombie
d. dead

A

c. zombie

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

Which of the following commands can be used to see files that are currently being used by a specific process ID (PID)?
a. psfiles
b. lsof
c. pstatus
d. pids

A

b. lsof

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

Which of the following can be used preceding a command to prevent a process from terminating when the parent process terminates?
a. bg
b. runat
c. &
d. nohup

A

d. nohup

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

Which of the following characters, when pressed while the top program is running, will allow you to change the niceness of a process?
a. n
b. p
c. r
d. d

A

c. r

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

Which of the following is the highest value that can be set for the nice value which would result in a greater chance of a lower priority?
a. 20
b. 19
c. 10
d. 0

A

b. 19

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

A system administrator wants to allow most users to be able to run cron jobs, but wants to specifically prevent a couple of users from doing so. Which of the following files could the administrator edit to disallow these users from creating cron jobs?
a. /etc/cron.deny
b. /etc/cron.d/cron.deny
c. /etc/cron.allow
d. /etc/cron.d/cron.allow

A

a. /etc/cron.deny

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