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…
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)- A7% (3)
- B2% (1)
- C2% (1)
- D89% (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
Community Discussion
No community discussion yet for this question.