pidof cp          # all pid's of processes called 'cp'
pgrep pattern     # all pid's mattching regex /pattern/
pgrep "^cp$"      # equivalent to pidof cp