Skip to content

Instantly share code, notes, and snippets.

@snahor
Created Nov 6, 2012
Embed
What would you like to do?
#!/bin/bash
if [ -n "$1" ]
then
ps xu | grep $1 | awk '{print $2}' | xargs kill -9
else
echo "Usage: die <process-name>"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment