I use
ps -ef |grep whatever (where whatever is the name of the program you're looking for); this will give you the pid; if there are multiple pids, take the one with the lowest number (the parent process) but make sure that it really belongs to the process that you want to stop as pid might find more than you want. Next I use
kill pid. If that's not sufficient, you can use
kill -9 pid.
PS: Never heard of pgrep and pkill
Too late