How to kill a linux process using “kill” command?

Please refer the following steps:

a.Enter the below command to get the PID for the running process on your system

which you want to kill.

ps myProcess

It will show the output with something similar to the following:


1345 dz07 0:45   editmyblog

1346 dz07  0:43  -csh

b. Enter the below command to terminate the first process mentioned in the example


kill -9 1345

kill -9 1346

c. Instead you can also kill all the instances of a given process by using the killall

command. Enter as shown below:

killall <pname>

<pname> specify to the process name.

Share on Twitter
Share on Facebook