The pkill command kills a named application but it does not work all the time. It can even when used with sudo. The good old kill command is the ultimate solution. Hence, I have use this alias in my .bashrc file in the home directory.
alias kll='bash ~/Scripts/kll.txt'
In the script file, I have this code:
for sID in `pgrep $1` do ps $sID kill -STOP $sID done for sID in `pgrep $1` do ps $sID kill -KILL $sID done
To kill an app, I type kll PROCESS-NAME. If it does not work, I would sudo it.