Pgrep
From Wikipedia, the free encyclopedia
- The correct title of this article is pgrep. The initial letter is shown capitalized due to technical restrictions.
pgrep is a command line utility initially written for use with the Solaris 7 operating systems and then ported to GNU/Linux. It searches for all the named processes, that can be specified as ERE patterns, and, by default, returns their ID. The equivalent Linux command is pidof.
Common use:
$ pgrep <option> processname ...
Some usage examples:
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 man page on usr-share-man.org : look up processes based on name and other attributes –
Unix command line programs and builtins (more) | |||
File and file system management: | cat | chattr | cd | chmod | chown | chgrp | cp | du | df | file | fsck | 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 | ex | head | iconv | join | less | more | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
Shell programming: | echo | expr | printf | unset | Printing: | lp |
Communications: inetd | netstat | ping | rlogin | traceroute |
Searching: find | grep | strings |
Miscellaneous: banner | bc | cal | man | size | yes |