Question 640
A Linux infrastructure team needs the safest targeted response to this condition: A batch job is stopped with Ctrl+Z but should continue running in the background. What should the engineer do first?
Explanation
Correct Answer
Suspension stops CPU execution until the shell resumes the job. This action corrects the relevant condition. Verify that jobs shows the task running rather than stopped.
Incorrect Answers
That remedy is appropriate when an administrator needs to return a background command to the current terminal. It targets fg moves a shell-managed job into the foreground; here suspension stops CPU execution until the shell resumes the job, so it does not directly repair the observed fault.
This change addresses a process survives the logout of the shell that launched it despite no interactive session. The present problem is different: suspension stops CPU execution until the shell resumes the job. Applying the alternative would leave the key cause unresolved.
It would correct a separate failure, an administrator wants to check what files a running daemon has open before restarting it. In this environment, suspension stops CPU execution until the shell resumes the job; the indicated alternative does not meet the acceptance test.





CompTIA Linux+ (XK0-006) Practice Tests