Home » LPI » 117-201 » When you issue the jobs command, you see a process that is running in the background. How can you fix thus so that you can logout?
You attempt to log out but receive an error message that you cannot. When you issue the jobs command, you see a process that is running in the background. How can you fix thus so that you can logout?
A. Issue the kill command with the PID of each running command of the pipeline as an argument.
B. Issue the kill command with the job number as an argument.
C. Issue the kill command with the PID of the last command as an argument.
D. Issue the kill command without any arguments.
Correct Answer: C
Explanation/Reference:
Explanation: The kill command is used to send a signal to kill one or more process IDs. You must own the process or be a privileged user, otherwise the kill command will be ignored.
Reference: http://www.oreillynet.com/linux/cmd/k/kill.html
Incorrect Answers
A:You need to end the background process. You know its process ID; therefore you should issue the process ID with the kill command to kill the appropriate process.
B:You cannot use the job number with the kill command. You should use the process ID or process name.
D:The kill command won’t work if it doesn’t know what process you want it to kill.
Download Printable PDF. VALID exam to help you PASS.
|
|