Services and User Management

A technician presses Ctrl+Z while a long backup script runs in the foreground. The shell reports the job as suspended. Which process state will ps most likely show for the script, and why?

Show the answer

Correct answerC. T, because SIGTSTP suspended it until it receives SIGCONT

Ctrl+Z sends SIGTSTP, which puts the process in the stopped state (T) until fg, bg or SIGCONT resumes it. Sleeping (S) is tempting because the script is not using CPU, but a sleeping process is waiting for an event, not suspended by a signal.