O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

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

Name

kill

Synopsis

                     
                        kill
                      [options] IDs

Terminate each specified PID or job ID. You must own the process or be a privileged user (either with su or sudo). See also the earlier section "Job Control" and the killall command in Chapter 2.

Options

- signal

The signal number (from ps -f) or name (from kill -l). The default is TERM (signal number 15). With a signal number of 9, the kill is unconditional. If nothing else works to kill a process, kill -9 almost always kills it, but it doesn't allow the process any time to clean up.

--

Consider all subsequent strings to be arguments, not options.

-l [ arg ]

With no argument, list the signal names. (Used by itself.) The argument can be a signal name or a number representing either the signal number or the exit status of a process terminated by a signal. If it is a name, the corresponding number is returned; otherwise, the corresponding name is returned.

-n signum

Specify the signal number to send.

-s signal

Specify signal. May be a signal name or number.

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