how to kill a running process in linux

First find the process using ps -A | grep “processname”
get the PID from the list
you will get result – similar to —

658 00:04:23 processname

now use
kill -9 <pid(658 )>
or
kill <pid>
or
killall processname
or
pkill -f processname

 

No images available.