Multiple choice

Which command is used to terminate all processes in your own system, except the login shell?

  1. kill 1

  2. kill 0

  3. cancel all

  4. cancel 1

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

In Unix, 'kill 0' sends a signal to all processes in the current process group, effectively terminating all processes except the calling shell (the login shell). 'kill 1' targets init process (PID 1), not user processes. 'cancel' is not the standard Unix command for this purpose. The command 'kill 0' is the correct method to terminate all processes in your process group.