While troubleshooting a long-running maintenance script, you notice that the command ps -o pid,stat,comm returns the following line:
1842 T+ db_backup.sh
No new log entries have appeared for several minutes, and you need the existing process to continue exactly where it left off in the foreground-without restarting it or losing its controlling terminal. Which single command accomplishes this goal?
In the STAT column produced by ps, an uppercase T means the process is stopped by a job-control signal, and the trailing + shows that the process group is already in the foreground of its controlling terminal. Sending the continue signal (SIGCONT) to the process unblocks it so the shell can resume execution in the same foreground context. The syntax kill -CONT 1842 delivers that signal.
kill -CONT 1842 resumes the stopped job exactly where it was suspended, keeping it in the foreground (correct).
bg %1 (or any bg) would place the job in the background, so it would not run in the foreground as required.
kill -STOP 1842 sends another stop signal, leaving the process suspended.
kill -9 1842 (SIGKILL) force-terminates the script instead of resuming it.
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 the T+ in the STAT column of the ps command mean?
Open an interactive chat with Bash
What is SIGCONT, and how does it work?
Open an interactive chat with Bash
What is the difference between the `kill -CONT` and `kill -9` commands?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .