pidof

pidof#

Find PID(s) by program name.

$ pidof nginx
$ pidof -s sshd
$ kill -HUP "$(pidof nginx)"