1.

Which option is preferred while killing a process using SIGKILL signal (9)?(a) -p(b) -s(c) -h(d) -dI got this question by my school teacher while I was bunking the class.This question is from Process Handling Commands topic in portion The Process of Unix

Answer»

The correct answer is (b) -s

The best explanation: Sometimes it may happen that some programs ignore the SIGTERM signal (15) and continue their execution normally. In such a case, the process can be killed by using SIGKILL signal (9). This signal can’t be generated at the press of a KEY, so we have to use KILLwith the signal name preceded with -s OPTION. For example, to kill a job with PID 184 use the following command:



Discussion

No Comment Found

Related InterviewSolutions