Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I can look around the internet and find that the associated number for SIGKILL is 9, but is there linux documentation (such as, a man page) showing the complete list of signals and their numbers?

share|improve this question
add comment

3 Answers

up vote 10 down vote accepted

man 7 signal

share|improve this answer
2  
The kill(1) man page should refer to the signal man page in the "SEE ALSO" section –  glenn jackman Feb 17 '11 at 19:38
add comment

The signal(7) man page (at least the one I have) shows multiple possible numbers for some of the signals. If you can get kill to list the numbers, they should be correct for the running system. Try:

kill -l

or

kill -L

In both cases, that's an "ell" (for "list"), not a "one". Bash's built-in kill -l shows a nice numbered table. Linux's procps kill -l shows a terse list of names without numbers, but -L shows a table with the numbers. BSD kill seems to only understand -l, and won't show you the numbers.

share|improve this answer
    
The -L option is better because it also shows the numbers associated with the signal names, and puts them in a nice table format. My version of procps is 3.2.8. –  Tshepang Feb 23 '11 at 9:43
    
@Tshepang: Thanks! Answer updated. I hadn't actually thought to try anything but Bash's built-in kill. –  Jander Feb 24 '11 at 7:26
add comment

Also look in /usr/include/signal.h and either scan the #define or #include statements (which on Ubuntu 10.10 tells you to look in /usr/include/bits/signum.h). Note that the SIGRTMIN/SIGRTMAX are placeholders for kernal and unused signals and should not be called by the shell or a program.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.