Question 160
A Linux administrator faces this situation: A foreground command must continue executing while the operator performs other work in the same shell. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Suspend it with Ctrl-Z if necessary and resume as a background job using bg. This corrects the case-specific failure. First verify: Check whether the command can be safely placed into job control and has no terminal-input dependency. Then demonstrate success: The job continues and the shell prompt is available for other commands.
Incorrect Answers
Identify the exact target PID and send a normal SIGTERM using kill before escalation. That would matter when a runaway process must be located by command name before sending any termination signal. The relevant distinction in this case is: Suspend it with Ctrl-Z if necessary and resume as a background job using bg.
Use fg with the appropriate job specification to resume it in the foreground. That would matter when a long-running batch task should be suspended and resumed in the foreground of the same shell. It does not address this case's requirement: A foreground command must continue executing while the operator performs other work in the same shell.
Launch it with nohup and appropriate output redirection or use a persistent session manager. That would matter when a command started from an SSH terminal must continue after logout and store its output in a file. That separate mechanism does not verify the needed Linux administration outcome in this case.