Skip to content
EntityQ286117· pop 15· linked from 8 articles

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.

Key facts

Software.author
Mike Shapiro
Software.operating system
Unix and Unix-like
Software.name
pgrep
Software.genre
Command

via Wikipedia infobox

Wikidata facts

Image
Pgrep.JPG
Sources (1)

via Wikidata · CC0

~2 min read

Article

3 sections
Contents
  • Example usage
  • See also
  • References

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.

==Example usage== The default behaviour of pgrep (returning the process identifier of the named tasks) simplifies an otherwise complex task and is invoked with:

Connections

Categories