//View Tip #228
Similar Tips
» Grepping for processes
» Always running
» Kill matching processes
» Kill matching processes without unnecessary greps and extra sh p
» Top ten running processes

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow



Comments 

Add your comment

Comments are currently disabled
Leigh
kill -9 `ps -fea | grep jav[a] | awk '{print $2}'`
or
kill -9 `ps -C java -o pid=`
Posted 2008-10-21 20:11:13
hey... try the following:

$ killall ProcessName

$ fuser -k `which ProcessName`
Posted 2008-10-25 18:38:46
gnomino
kill -9 `pgrep java`
Posted 2010-02-02 10:23:32
Jās
if you've got pgrep, you may as well use another command in the package:

pkill -9 java
Posted 2010-06-14 20:35:30

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit