Module 9 Test Flashcards
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
d. kill -9 1357
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
d. crontab -l
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
c. zombie
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
b. lsof
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
d. nohup
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
c. r
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
b. 19
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. /etc/cron.deny