LFCS · Question #796
Which of the following commands moves and resumes in the background the last stopped shell job?
The correct answer is B. bg. The bg command moves the last stopped shell job into the background and resumes its execution.
Question
Options
- Arun
- Bbg
- Cfg
- Dback
How the community answered
(39 responses)- A3% (1)
- B95% (37)
- C3% (1)
Why each option
The `bg` command moves the last stopped shell job into the background and resumes its execution.
`run` is not a standard shell command for managing job execution in the background.
The `bg` command (background) is a shell builtin that takes a stopped job and resumes its execution as a background process, allowing the user to continue using the terminal for other commands.
The `fg` command (foreground) brings a background or stopped job to the foreground, which is the opposite of moving it to and resuming it in the background.
`back` is not a standard job control command in common shells like Bash.
Concept tested: Shell job control (bg command)
Source: https://www.gnu.org/software/bash/manual/bash.html#Job-Control
Topics
Community Discussion
No community discussion yet for this question.