Linux 1 Chapter 9 Questions
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
Zombie
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
nohup
You have run the top command successfully, but realize that the q key on the keyboard has suddenly stopped working. What is another way that you can exit out of the top program? a. ctrl-c b. ctrl-q c. ctrl-w d. ctrl-x
ctrl-c
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
lsof
Which of the following commands can be used to schedule very frequent recurring tasks, such as running once every minute? a. run b. cron c. do d. while
cron
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
crontab -l
f a process state is currently showing as uninterruptible sleep, which letter will show in the output of the ps command? a. S b. U c. N d. D
D
You have started a job running in the background that you want to now bring to the front so that you can watch it execute. Which of the following commands can be used to display the job's output to the terminal? a. disp b. fg c. front d. jobs -f
fg
Which of the following commands can be used to only show jobs that have been paused. a. jobs -p b. jobs -s c. jobs -n d. jobs -r
jobs -s
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
kill -9 1357