Skip to content

Instantly share code, notes, and snippets.

@Prussia
Forked from mwkang/all kill jps
Created December 14, 2017 04:16
Show Gist options
  • Select an option

  • Save Prussia/67cae53b09035e618caaddb1c46dc2c0 to your computer and use it in GitHub Desktop.

Select an option

Save Prussia/67cae53b09035e618caaddb1c46dc2c0 to your computer and use it in GitHub Desktop.
jps | awk '$2 != "Jps" {print $1}' | xargs kill
kill -9 `jps | cut -d " " -f 1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment