Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

Finding and kill process in one go

$
0
0

My first blog on this site. Come across a good way to find and kill process on Linux in one go. Useful command!!

To find all java process running on Linux box  -

ps -eaf | grep java | awk '{ print $2}'

To kill all java process running on Linux box -

kill -9 `ps -eaf | grep java | awk '{ print $2}'` 

I hope this is useful to others too.



Viewing all articles
Browse latest Browse all 19780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>