nerdexam
CompTIA

XK0-005 · Question #340

An administrator started a long-running process in the foreground that needs to continue without interruption. Which of the following keystrokes should the administrator use to continue running the…

The correct answer is A. bg. When a foreground process needs to be moved to the background without interruption, the standard Linux workflow is: press Ctrl+Z to suspend (pause) the running process, then type the bg command to resume it running in the background. The bg command without arguments resumes the…

System Management

Question

An administrator started a long-running process in the foreground that needs to continue without interruption. Which of the following keystrokes should the administrator use to continue running the process in the background?

Options

  • Abg
  • Bbg
  • Cjobs -1
  • Dbg &

How the community answered

(60 responses)
  • A
    90% (54)
  • B
    2% (1)
  • C
    5% (3)
  • D
    3% (2)

Explanation

When a foreground process needs to be moved to the background without interruption, the standard Linux workflow is: press Ctrl+Z to suspend (pause) the running process, then type the bg command to resume it running in the background. The bg command without arguments resumes the most recently suspended job in the background. jobs -1 is not a valid command (jobs uses %1 for job referencing), and bg & is syntactically incorrect since & is used when launching a command, not with bg.

Topics

#Process Management#Job Control#Linux Commands#Background Processes

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice