from http://www.howtogeek.com/howto/ubuntu/kill-a-process-by-process-name-from-ubuntu-command-line/ http://askubuntu.com/questions/239923/shell-script-to-9-kill-based-on-name https://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/
pkill NAMEofPROC
killall -9 NAMEofPROC
kill -9 $(pidof NAMEofPROC)
kill $(pgrep NAMEofPROC)
killall -v NAMEofPROC
#or find PID (Process id)
ps aux | grep NAMEofPROC
pidof NAMEofPROC
# and kill PID (Process id)
kill PID
kill -9 PID
kill -SIGKILL PID
# old way
kill `ps -ef | grep NAMEofPROC | grep -v grep | awk ‘{print $2}’`