pavement

Kill

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
  
 
[[kill]] by itself will cause a process to try to finish what it's doing and save it's state before actually stopping the process, if you pass it the -9 option it will instead kill a process immediately and without waiting or saving any state/information. The [[HUP]] flag will cause the process to re-read it's configuration file (basically a restarting of the process).
 
[[kill]] by itself will cause a process to try to finish what it's doing and save it's state before actually stopping the process, if you pass it the -9 option it will instead kill a process immediately and without waiting or saving any state/information. The [[HUP]] flag will cause the process to re-read it's configuration file (basically a restarting of the process).
 +
 +
==Flags==
 +
-1 HUP; be careful with this, if used as root, this goes to ALL processes.
 +
-HUP the same as -1
 +
-6 abort, like doing a control-C
 +
-9 uninterruptible kill -- stop the process NOW
 +
-15 kill politely (save changes, stop when done)
 +
  
 
See also [[skill]]
 
See also [[skill]]
 
[[Category:System Commands]]
 
[[Category:System Commands]]

Revision as of 13:33, 16 April 2006

kill -- surprise -- kills processes. You must supply a pid. If you want to kill a process by name, look at pkill or killall.

kill by itself will cause a process to try to finish what it's doing and save it's state before actually stopping the process, if you pass it the -9 option it will instead kill a process immediately and without waiting or saving any state/information. The HUP flag will cause the process to re-read it's configuration file (basically a restarting of the process).

Flags

-1 HUP; be careful with this, if used as root, this goes to ALL processes.
-HUP the same as -1
-6 abort, like doing a control-C
-9 uninterruptible kill -- stop the process NOW
-15 kill politely (save changes, stop when done)

See also skill

Personal tools