Archive for June, 2008

The kill command

If you're new here, you may want to subscribe to my RSS feed.

Today we are going to look at a command that you don’t use very much in a Unix environment. The kill command. It is used when an application is stuck or not responding. The basic form of the command is kill [option]... PID. The PID is the process ID, you can get it by using the top command that I talked about previously. The most common option for the kill command is the -9 option. It will kill the process immediately.

Example

kill -9 2342

If you type top again you should see that the process that was associated with that PID is no longer running.