Multiple choice technology operating systems

How kill the process in a single line?

  1. ps

  2. kill PID

  3. kill ps <processname>

  4. kill -9 "PID"

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

kill -9 PID sends SIGKILL to forcefully terminate the process with the specified PID. Option A only lists processes. Option B sends SIGTERM (not -9). Option C has incorrect syntax - ps doesn't output a PID directly for kill. Only D correctly uses kill -9 with a PID placeholder.