Multiple choice technology operating systems

command to kill the last job running at the background.

  1. kill 1

  2. KILL $$
  3. kill $?
  4. kill $!
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The special variable $! contains the process ID (PID) of the last background job started. Using kill $! sends a termination signal to that specific background process. This is the standard way to reference and control the most recently backgrounded job in shell scripting.