linux pgrep pkill - ghdrako/doc_snipets GitHub Wiki

It searches for all the named processes that can be specified as extended regular expression patterns, and—by default—returns their process ID. Alternatives include pidof (finds process ID given a program name) and ps.

pgrep -l curl
pkill curl