UNIX Commands

ps command

The command to display processes depends on which of the various branches of Unix

ps -af
ps -ef
kill command

The kill command can be used to send a "signal" code to a process. As the command name implies, this is most often used to cause the process to end.

kill pid
kill -s TERM pid
kill -15 pid

kill -s KILL pid
kill -9 pid

Signal number 15 (SIGTERM) is the "terminate" signal, which attempts to cause the process to end gracefully. Signal number 9 (SIGKILL) is the "kill" signal, which causes the process to be terminated immediately.

Some of the more commonly used signal numbers and names are:

1 HUP SIGHUP hang up
2 INT SIGINT interrupt
3 QUIT SIGQUIT quit
6 ABRT SIGABRT abort
7 STOP SIGSTOP stop
9 KILL SIGKILL kill
15 TERM SIGTERM terminate

Last updated Monday April 16, 2007


Printer-friendly PDF* format:

UNIX Commands

This Section

You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML 2* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.