pgrep / pkill

pgrep / pkill#

Find / kill processes by name.

$ pgrep -af nginx
$ pkill -f 'pattern'
$ pkill -HUP nginx