Kill By Name
Kill Process
$ ps -ej | grep " ping " | awk '{print $2}' | xargs kill -s SIGINT
Add it to your .bash_profile
function killname() {
if [ "$1" = "" ]; then
echo "Nothing to do"
else
ps -ej | grep "$1"
ps -ej | grep "$1" | awk '{print $2}' | xargs kill -s SIGINT
fi
}