nerdexam
CompTIA

XK0-005 · Question #762

An administrator needs to stop a foreground process in between its execution in a terminal. Which of the following should the administrator use?

The correct answer is D. Ctrl+C. Ctrl+C sends the SIGINT (Signal Interrupt) signal to the foreground process, which causes it to terminate immediately. This is the standard way to stop a running foreground process in a terminal. Ctrl+Z sends SIGTSTP, which suspends (pauses) the process and puts it in the…

System Management

Question

An administrator needs to stop a foreground process in between its execution in a terminal. Which of the following should the administrator use?

Options

  • ACtrl+D
  • BCtrl+F
  • CCtrl+Z
  • DCtrl+C

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    2% (1)
  • C
    2% (1)
  • D
    89% (40)

Explanation

Ctrl+C sends the SIGINT (Signal Interrupt) signal to the foreground process, which causes it to terminate immediately. This is the standard way to stop a running foreground process in a terminal. Ctrl+Z sends SIGTSTP, which suspends (pauses) the process and puts it in the background - it does not stop it. Ctrl+D sends an EOF (End of File) signal to the terminal's stdin, which closes the input stream but does not forcefully stop a running process. Ctrl+F has no standard terminal signal meaning.

Topics

#Terminal commands#Process management#Keyboard shortcuts

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice