1Z0-821 · Question #137
You have been asked to terminate a process that appears to be hung and will not terminate. The process table is shown below: root 15163 15156 0 12:51:15 pts/3 0:00 hungscript What command will…
The correct answer is A. kill -9 15163. Here we should use SIGTERM to terminate the process. When no signal is included in the kill command-line syntax, the default signal that is used is ?5 (SIGKILL). Using the ? signal (SIGTERM) with the kill command ensures that the process terminates promptly. However, the ?…
Question
You have been asked to terminate a process that appears to be hung and will not terminate. The process table is shown below:
root 15163 15156 0 12:51:15 pts/3 0:00 hungscript What command will terminate the process?
Options
- Akill -9 15163
- Bkill -1 15163
- Ckill -15 15163
- Dkill -2 15163
How the community answered
(33 responses)- A73% (24)
- B6% (2)
- C18% (6)
- D3% (1)
Explanation
Here we should use SIGTERM to terminate the process. When no signal is included in the kill command-line syntax, the default signal that is used is ?5 (SIGKILL). Using the ? signal (SIGTERM) with the kill command ensures that the process terminates promptly. However, the ? signal should not be used to kill certain processes, such as a database process, or an LDAP server process. The result is that data might be lost. Tip - When using the kill command to stop a process, first try using the command by itself, without including a signal option. Wait a few minutes to see if the process terminates before using the kill command with the -9 signal.
Topics
Community Discussion
No community discussion yet for this question.