There can be times that a process becomes unresposive and you want to kill it forcefully.
In linux, we will need to first find out the process id
ps command- it gives a list of all processes running.
ps aux- gives all process details with, a = show processes for all users, u = display the process’s user/owner, x = also show processes not attached to a terminal
to fetch only required process- use grep, ps aux| grep ‘name’
Then kill it forcefully- kill -9 PID
Putting it all together.
Lets say I want to kill eclipse
kamalmeet@System:~$ ps aux | grep eclipse
1101 6070 1.3 1.8 46584 5500 ? Sl 12:34 1:38 /usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/kamalmeet/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
kamalmeet@System:~$ kill -9 6070