In Linux you might want to kill all processes by part of the CMD, or in other words by part of the program name. So instead of searching all processes and killing them all by PID, you might use a little bash script:
#!/bin/bash
# parse PID's of matched processes and
# feed them to kill -9 using xargs
ps -ef | grep $1 | awk '{print $2}' | xargs kill -9
In Ubuntu I have it as /usr/local/bin/killallname. So if for some reason I want to kill all, say, firefox processes, I just use it from console as:
$ killallname firefox
Update: I found out that there are two standard utils that can do exactly that and even more: pgrep and pkill (well, I guess I tried to reinvent the wheel).