Linux Commands | Process Management | kill Terminate Processes
kill Command
The kill command terminates processes.
Syntax
kill (option) [PID: process ID]
Options (Signals)
-1: Restart (HUP)-9: Force termination (KILL)-15: Wait and terminate normally (TERM)
kill Command Example
// Check the PID of the process whose name is tomcat
ps -ef | grep tomcat
501 2177 1 0 11:36PM ttys000 0:05.94
... omitted ...
// Terminate the process with PID 2177
kill -9 2177