Pgrep

From DssWiki

Jump to: navigation, search

{{DISPLAYTITLE:{{#if:|:|}}pgrep}}

pgrep is a command line utility initially written for use with the Solaris 7 operating system. It has since been reimplemented for Linux and OpenBSD. It searches for all the named processes, that can be specified as extended regular expression patterns, and, by default, returns their ID. Alternatives include pidof and ps.

[edit] Example usage

Show all process (in long form, ID and name) belonging to the other group

$ pgrep -l -G other

Show all process not belonging to root user

pgrep -v -u root

[edit] See also

[edit] External links

  • [{{Man/{{#if:Linux

|Linux|default}}|1|pgrep|url}} pgrep{{#if:{{Man/{{#if:Linux |Linux|default}}|1|pgrep|display_section}}|({{Man/{{#if:Linux |Linux|default}}|1|pgrep|display_section}})}}]{{#if:look up processes based on name and other attributes|: look up processes based on name and other attributes}}{{#if:{{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|pgrep|attrib}}}}| – {{#ifeq: |inline||{{Man/{{#if:Linux |Linux|default}}|1|pgrep|attrib}}}}}}


<noinclude>
Personal tools
efta 468 03-27-08 JOIN OUR TEAM!!