How to kill many processes at once

ps -ef | grep java | awk '{print $2}' | xargs kill -9
pgrep java  | xargs kill -9

If you need to sudo:

sudo pkill `pgrep -u i88ca java`
for n in $(ps -u i88ca | grep java | cut -d ' ' -f 2); do sudo kill $n; done

Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...