News for hackers. Stuff that matters.
Re:A Unix Utility to Know About: lsof (2009) by amyjess on Friday August 26, 2016 @09:47AM (#12366167)
Sometimes, I want something a little more murderous, so I tend to write this script on most systems I use:

    ps -ef | grep $1 | awk '{print "kill -9 " $2}' | sh
Usually stored as /usr/local/bin/kll

I've found it's very useful for killing specific Java programs without having to killall -9 java.

(and, yeah, I should probably be using ps -efww instead of ps -ef, but old habits die hard... I've already got ps aliased to ps -ww for interactive use, so I should probably change this script...)

Re:A Unix Utility to Know About: lsof (2009) by imtringued on Friday August 26, 2016 @10:47AM (#12366643)
You should try jps it's similar to ps but only lists java processes with their real names instead of just "java". It's included in pretty much every JDK.