Pgrep
From DssWiki
{{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
- List of Unix programs
- pkill - signal processes based on name and other attributes
[edit] External links
|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}}}}}}
{{#if: |
Unix command line programs and builtins (more) | |||
| File and file system management: | cat | chattr | cd | chmod | chown | chgrp | cksum | cmp | cp | du | df | file | fsck | fuser | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
| Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
| User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
| Text processing: | awk | comm | cut | ed | ex | fmt | head | iconv | join | less | more | paste | pg | sed | sort | tac | tail | tr | uniq | wc | xargs | ||
| Shell programming: | basename | echo | expr | false | printf | test | true | unset | Printing: | lp |
| Communications: inetd | netstat | ping | rlogin | traceroute | Searching: find | grep | strings | Miscellaneous: banner | bc | cal | dd | man | size | yes | |
