Home » Oracle » 1z0-100 » Which two statements are true about signal handling in Oracle Linux?
Which two statements are true about signal handling in Oracle Linux?
A. The pkill command kills a process by name.
B. A process killed with the default signal always terminates gracefully if it: does not block the kill request.
C. The kill command sends a sigkill (signal 9) by default to the process being killed.
D. The kill command may send a termination signal to more than one process at a time.
E. All signals may be blocked by a process.
Correct Answer: BD
Explanation/Reference:
D: The kill command is used to send a termination signal to the specified process or group.
Incorrect:
Not A: The following example shows the xscreensaver process (2609) which is to be terminated.
$ pgrep xscreen
2609
$ kill 2609
Though we use pgrep to find the PID of this process here we could have also used a PID from the output of top or ps.
Not C: The kill command is used to send a termination signal to the specified process or group. The default termination signal is a SIGTERM (15) signal.
Not E: When there a stubborn process trapping the kill command and refusing to terminate, the -9 (SIGKILL) signal should be used to kill the process. The -9 signal cannot be trapped by a process and ignored.
Download Printable PDF. VALID exam to help you PASS.
|
|