killall NAME Kill all the process by the given name

$ perl -e 'sleep 1 while 1' &
$ perl -e 'sleep 1 while 1' &
$ perl -e 'sleep 1 while 1' &
$ ps -ef | grep perl
$ killall perl
$ ps -ef | grep perl