O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

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

The kill Command

When you use the kill command with a process, you stop whatever that process is doing. One hazard with commands of this nature is that if you are using a program like the vi editor and you kill it, you may lose your work as a result.

Although the kill command is mainly used to end a process, it can also be used to send signals to a process. Signals can be sent to indicate an action. There are actually many signals that you can use with the kill command. If you use the kill command with the –l option, you can see a list of everything that Unix can signal with:

 >kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGIOT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM ...

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