nerdexam
Linux_Foundation

LFCS · Question #851

Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at…

The correct answer is A. bg myapp. To resume a stopped process and run it in the background, the bg command is used, allowing the user to continue typing commands at the prompt.

Submitted by olafpl· Apr 18, 2026Essential Commands

Question

Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?

Options

  • Abg myapp
  • Bcontinue myapp
  • Cexec myapp
  • Dfg myapp
  • Emyapp &

How the community answered

(32 responses)
  • A
    88% (28)
  • C
    6% (2)
  • D
    3% (1)
  • E
    3% (1)

Why each option

To resume a stopped process and run it in the background, the `bg` command is used, allowing the user to continue typing commands at the prompt.

Abg myappCorrect

A is correct because the `bg` command (background) takes a stopped job (identified by its job number or name) and resumes its execution in the background, releasing the terminal prompt for the user to execute other commands. This is evident from the `[1]+ Stopped myapp` output, indicating `myapp` is job 1 and is stopped.

Bcontinue myapp

`continue` is not a standard shell command for resuming stopped jobs in the background.

Cexec myapp

`exec myapp` would replace the current shell with `myapp`, terminating the current session and not putting `myapp` in the background.

Dfg myapp

`fg myapp` (foreground) would resume the process but bring it to the foreground, meaning it would occupy the terminal and block further command input until it finishes or is stopped again.

Emyapp &

`myapp &` would start `myapp` in the background *initially*, but the process is already stopped; this command would attempt to start a *new* instance of `myapp`.

Concept tested: Job control (backgrounding processes)

Source: https://man7.org/linux/man-pages/man1/bash.1.html

Topics

#Process management#Job control#Background processes#Shell commands

Community Discussion

No community discussion yet for this question.

Full LFCS Practice