These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX01/The Kill Command

Classnotes | UNIX01 | RecentChanges | Preferences

Showing revision 1
+

Killing A Process

Sometimes it's necessary to kill a process. This is normally only done by a system administrator, but you can kill any processes you have started. The command for killing a process is:

 kill 2462

The number that follows the kill command is the process identification number (PID) you can find by first listing all active processes (ps). The number 2462 in the above example would have killed the first find process from Figure 5. This process has run for 4 seconds and is using about 11% of my CPU's capacity. It it were to run much longer it would be a good candidate for killing. Of course, some processes run so fast that there is no practical way to kill them - they are finished long before you can type in the kill command.



Classnotes | UNIX01 | RecentChanges | Preferences
This page is read-only | View other revisions | View current revision
Edited August 8, 2003 10:36 pm (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.