1Z0-821 practice question 28 of 30

User1 is attempting to assist user2 with terminating user2's process 1234. User1 entered the following: kill -9 1234 Why does the process continue to run?

Full set: 243 questions
Answer options
A: You can kill a process only if you are root.
B: You can kill only a process that you own. Correct answer
C: You can kill the process only with the pkill command.
D: You need to kill the process with a stronger kill signal.
Correct Answer:
B. You can kill only a process that you own.
Explanation

Kill -9 Kill (terminates without cleanup) Only works if issued by process owner or super user (root) The program cannot respond to this signal; it must terminate
Note: Unix provides security mechanisms to prevent unauthorized users from killing other processes. Essentially, for a process to send a signal to another, the owner of the signaling process must be the same as the owner of the receiving process or be the superuser.

Scroll to Top