A system administrator is running a lengthy data processing script, process_data.sh, directly in their terminal. Realizing they need the terminal for other urgent tasks, the administrator presses Ctrl+Z, which suspends the script. To continue the script's execution without it occupying the terminal, which of the following commands should be used next?
The correct command to resume a stopped (suspended) job in the background is bg. When Ctrl+Z is pressed, the foreground process is sent a TSTP signal, which suspends its execution. The bg command then resumes the most recently suspended job, allowing it to run in the background. fg would resume the job in the foreground, which is not what is required. jobs only lists the current jobs and does not change their state. process_data.sh & would start a new instance of the script in the background, rather than resuming the already running but suspended process.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does `Ctrl+Z` do in a terminal session?
Open an interactive chat with Bash
How do `fg` and `bg` commands differ?
Open an interactive chat with Bash
What happens if you use `jobs` or `process_data.sh &` in this scenario?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access