4 ms·
I am more a `killall <processname>` guy.
by johnchristopher 10y ago
I am more a `killall <processname>` guy.
- koolba 10y ago> I am more a `killall <processname>` guy. I've made a note to name the executable for my next daemon "humans".
- Rondom 10y agoDon't do that on Solaris ;-)
- joosters 10y agoBeen there, done that :( See also the 'reboot' (or is it the 'poweroff' ?) command, which is much more direct than the Linux equivalent...
- amyjess 10y agoSometimes, 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...)
- imtringued 10y agoYou 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.
- ozzmotik 10y agooh god i thought I was the only one
- voidz 10y ago'pkill' can do a bit more, it's the better alternative in my opinion.