Services and User Management

An administrator starts a long job over SSH with nohup ./backup.sh &, then closes the SSH session. The shell that launched the job exits, but the job keeps running. Later, the administrator runs ps -o pid,ppid,cmd -C backup.sh. Which PPID value is the job MOST likely to show?

Show the answer

Correct answerD. 1, the init process (systemd)

When a parent exits, its surviving child is orphaned and reparented to init, which is PID 1 (systemd on current distributions). The PPID is not left pointing at the dead login shell, because that PID no longer exists as a parent.