Skip to content

Instantly share code, notes, and snippets.

@tywkeene
Created February 11, 2017 05:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tywkeene/952c620826a6d87fe4fdf1f83d3b3f91 to your computer and use it in GitHub Desktop.
Save tywkeene/952c620826a6d87fe4fdf1f83d3b3f91 to your computer and use it in GitHub Desktop.
#!/bin/bash
#Ruthlessly slaughters a process by process name
function slaughter(){
kill -9 $(pgrep $1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment