A system administrator initiates a lengthy data backup process using the tar command in a shell. Realizing they need the terminal for other immediate tasks, they press Ctrl+Z to suspend the process. After completing the other tasks, they want to resume the tar command and monitor its progress directly in the terminal. Which command should the administrator use to achieve this?
The correct command is fg. The fg (foreground) command is used to resume a job that has been suspended (for example, by pressing Ctrl+Z) and bring it to the foreground. This allows the user to interact with the process and monitor its output directly.
The bg command would resume the suspended job, but in the background, which would not allow the administrator to monitor its progress in the terminal. The jobs command is used only to list the current jobs and their statuses; it does not resume them. The & symbol is used to start a new command in the background, not to manage an existing suspended job.
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 `fg` command do in Linux?
Open an interactive chat with Bash
How does `bg` differ from `fg` when managing jobs?
Open an interactive chat with Bash
What is the purpose of the `jobs` command in Linux?
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 .