Skip to content

Instantly share code, notes, and snippets.

@manuzhang
Created January 29, 2015 00:47
Show Gist options
  • Save manuzhang/8ca60a77430ca070a0f4 to your computer and use it in GitHub Desktop.
Save manuzhang/8ca60a77430ca070a0f4 to your computer and use it in GitHub Desktop.
kill all java processes with the given name
jps | grep ${process_name} | cut -d ' ' -f 1 | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment