Home » Oracle » 1z0-821 » What command will terminate the process?
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?
A. kill -9 15163
B. kill -1 15163
C. kill -15 15163
D. kill -2 15163
Correct Answer: A
Explanation/Reference:
Explanation:
Here we should use SIGTERM to terminate the process.
Note:
When no signal is included in the kill command-line syntax, the default signal that is used is -15 (SIGKILL). Using the -9 signal (SIGTERM) with the kill command ensures that the process terminates promptly. However, the -9 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.
Download Printable PDF. VALID exam to help you PASS.
|
|
BTW kill PID would be exactly the same as kill -15 PID.
Explanation is just pure lies.
SIGTERM = 15 (TERM) signal, not 9 which is (SIG)KILL, but to terminate hung process you are likely to use kill -9 PID, which would be answer A, but for completely different reason!