O'Reilly logo

Linux Shell Scripting Cookbook by Sarath Lakshman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required