Technotes

Technotes for future me

pgrep

From Wikipedia, the free encyclopedia:

pgrep is a command-line utility initially written for use with the Solaris 7 operating system by Mike Shapiro.
It has since been available in illumos and reimplemented for the Linux and BSDs (DragonFly BSD, FreeBSD, NetBSD, and OpenBSD).
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
Last updated on 31 Jan 2021
Published on 11 Dec 2019
Edit on GitHub