Created
August 10, 2018 03:42
-
-
Save binhqd/17edd30b08056e0b48725604a0285ffd to your computer and use it in GitHub Desktop.
Kill process grep by netstat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -ntpl | grep java | awk '{print $7}' | sed -E 's/([\d]+?)\/(.*)/\1/' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment