Which two statements are true about signal handling in Oracle Linux?

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.

Explanation:
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.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Jef Adams

Jef Adams

A = obvious

The command kill sends the specified signal to the specified process or process group. If no sig‐
nal is specified, the TERM signal is sent. The TERM signal will kill processes which do not catch
this signal. —> D For other processes, it may be necessary to use the KILL (9) signal, since this signal cannot be caught.

So answer A,D