ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 210 - XK0-005 discussion

Report
Export

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?

A.
<Ctrl+z> bg
Answers
A.
<Ctrl+z> bg
B.
<Ctrl+d> bg
Answers
B.
<Ctrl+d> bg
C.
<Ctrl+b> jobs -1
Answers
C.
<Ctrl+b> jobs -1
D.
<Ctrl+h> bg &
Answers
D.
<Ctrl+h> bg &
Suggested answer: A

Explanation:

A long-running process is a program that takes a long time to complete or runs indefinitely on a Linux system. A foreground process is a process that runs in the current terminal and receives input from the keyboard and output to the screen. A background process is a process that runs in the background and does not interact with the terminal. A background process can continue running even if the terminal is closed or disconnected.

To start a long-running process in the background, the user can append an ampersand (&) to the command, such assomeapp &. This will runsomeappin the background and return control to the terminal immediately.

To move a long-running process from the foreground to the background, the user can use two keystrokes: Ctrl+Z and bg. The Ctrl+Z keystroke will suspend (pause) the foreground process and return control to the terminal. The bg keystroke will resume (continue) the suspended process in the background and detach it from the terminal. The statement B is correct.

The statements A, C, and D are incorrect because they do not perform the desired task. The bg keystroke alone will not work unless there is a suspended process to resume. The Ctrl+B keystroke will not suspend the foreground process, but rather move one character backward in some applications. The jobs keystroke will list all processes associated with the current terminal. The bg & keystroke will cause an error because bg does not take any arguments.Reference: [How to Run Linux Processes in Background]

asked 02/10/2024
Blake Heffelfinger
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first