Skip to content

Instantly share code, notes, and snippets.

@binhqd
Created August 10, 2018 03:42
Show Gist options
  • Save binhqd/17edd30b08056e0b48725604a0285ffd to your computer and use it in GitHub Desktop.
Save binhqd/17edd30b08056e0b48725604a0285ffd to your computer and use it in GitHub Desktop.
Kill process grep by netstat
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