A Comparison of Unix® pgrep Implementations

This document serves to provide a side-by-side comparison of the pgrep(1) utility found on various Unix® or Unix-like systems. In particular, the comparison is between the Oracle Solaris 10, FreeBSD, GNU/Linux, and HP-UX 11i versions. I have listed all of the switches which appear in the man pages of the four systems. The reader should note that the '-c' switch appears twice in the table. I did this because, even though Solaris 10 and Linux each implement a -c switch, they do two completely different things. Likewise, the HP-UX '-u' and '-U' switches, though similar, do not directly correspond to the other three systems, so they have their own table rows, as does the '-z' switch; consult your local man pages for their proper usage.

pgrep(1) Man Pages:

Switch Solaris FreeBSD Linux HP-UX
-a X
-c X
-c X
-d X X X X
-e X
-f X X X X
-F X
-g X X X X
-G X X X X
-i X
-I X
-j X
-J X
-l X X X X
-L X
-M X
-n X X X X
-N X
-o X X X X
-P X X X X
-R X
-s X X X X
-S X X
-t X X X X
-T X
-u X X X
-u X
-U X
-U X X X
-v X X X X
-x X X X X
-z X
-z X
-Z X
-signal X X X X


Creative Commons License
A Comparison of Unix® pgrep Implementations by R. Somers is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Based on a work at rsquared.sdf.org/pgrep/.

Last Modified Sun Dec 22 13:56:07 UTC 2013