Killing processes and send or respond to signals

Termination of processes is an important task we always come across. Sometimes we may need to terminate all the instances of a program. The command line provides several options for terminating programs. An important concept regarding processes in UNIX-like environments is that of signals. Signals are an inter-process communication mechanism used to interrupt running process to perform some action. Termination of a program is also performed by using the signals technique. This recipe is an introduction to signals and the usage of signals.

Getting ready

Signals are an inter-process mechanism available in Linux. We can interrupt a process by using a specific signal. Each signal is associated with an ...

Get Linux Shell Scripting Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.