Information about 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.
..... Click the link for more information.
..... Click the link for more information.
Example usage
pgrep's default behaviour (returning the process id(s) of the named task(s)) is invoked by typing:pgrep taskname
- Show all processes (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
See also
- List of Unix programs
- pkill - signal processes based on name and other attributes
- ps - display the currently running processes
- grep - search for lines of text that match one or many regular expressions
External links
- : look up processes based on name and other attributes – Linux man page on usr-share-man.org
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 logname 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 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 nc traceroute Searching: find grep strings Miscellaneous: banner bc cal dd man size yes | |
command line interface or CLI is a method of interacting with an operating system or software using a command line interpreter. This command line interpreter may be a text terminal, terminal emulator, or remote shell client such as PuTTY.
..... Click the link for more information.
..... Click the link for more information.
The Solaris Operating System, usually known simply as Solaris, is a computer operating system developed by Sun Microsystems. It is certified against the Single Unix Specification as a version of Unix, and although historically a closed-source product, a majority of
..... Click the link for more information.
..... Click the link for more information.
Linux (pronunciation: IPA: /ˈlɪnʊks/, lin-uks) is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development; its underlying source code can be
..... Click the link for more information.
..... Click the link for more information.
OpenBSD is a Unix-like computer operating system descended from Berkeley Software Distribution (BSD), a Unix derivative developed at the University of California, Berkeley. It was forked from NetBSD by project leader Theo de Raadt in late 1995.
..... Click the link for more information.
..... Click the link for more information.
In computing, a regular expression is a string that is used to describe or match a set of strings, according to certain syntax rules.
Regular expressions are used by many text editors, utilities, and programming languages to search and manipulate text based on patterns.
..... Click the link for more information.
Regular expressions are used by many text editors, utilities, and programming languages to search and manipulate text based on patterns.
..... Click the link for more information.
pidof is a Linux utility that returns the process ID (PID) of a running process or processes. On other operating systems, pgrep and ps are often used instead. It is technically a symbolic link to killall5
..... Click the link for more information.
..... Click the link for more information.
In most Unix-like operating systems, ps is a program that displays the currently running processes.
ps has many options. On operating systems that support the UNIX and POSIX standards, ps is commonly run with the options -ef, where "-e" selects e
..... Click the link for more information.
ps has many options. On operating systems that support the UNIX and POSIX standards, ps is commonly run with the options -ef, where "-e" selects e
..... Click the link for more information.
grep is a command line utility that was originally written for use with the Unix operating system. Given a list of files or standard input to read, grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
..... Click the link for more information.
..... Click the link for more information.
AWK
Paradigm: scripting language, procedural, event-driven
Appeared in: 1977, last revised 1985, current POSIX edition is IEEE Std 1003.1-2004
Designed by: Alfred Aho, Peter Weinberger, and Brian Kernighan
..... Click the link for more information.
Paradigm: scripting language, procedural, event-driven
Appeared in: 1977, last revised 1985, current POSIX edition is IEEE Std 1003.1-2004
Designed by: Alfred Aho, Peter Weinberger, and Brian Kernighan
..... Click the link for more information.
Printing: lp Communications: inetd netstat ping rlogin nc traceroute Searching: find grep strings Miscellaneous: banner bc cal dd man size yes
..... Click the link for more information.
..... Click the link for more information.
pkill is a command line utility initially written for use with the Solaris 7 operating system. It has since been reimplemented for Linux and OpenBSD.
As with the kill and killall commands, pkill is used to send signals.
..... Click the link for more information.
As with the kill and killall commands, pkill is used to send signals.
..... Click the link for more information.
In most Unix-like operating systems, ps is a program that displays the currently running processes.
ps has many options. On operating systems that support the UNIX and POSIX standards, ps is commonly run with the options -ef, where "-e" selects e
..... Click the link for more information.
ps has many options. On operating systems that support the UNIX and POSIX standards, ps is commonly run with the options -ef, where "-e" selects e
..... Click the link for more information.
grep is a command line utility that was originally written for use with the Unix operating system. Given a list of files or standard input to read, grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
..... Click the link for more information.
..... Click the link for more information.
Linux (pronunciation: IPA: /ˈlɪnʊks/, lin-uks) is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development; its underlying source code can be
..... Click the link for more information.
..... Click the link for more information.
man pages (short for "manual pages"). The Unix command used to display them is man. Each page is a self-contained document.
man <page_name>
at a shell prompt, for example, "
..... Click the link for more information.
Usage
To read a page from the manual, one can use the commandman <page_name>
at a shell prompt, for example, "
..... Click the link for more information.
Unix (officially trademarked as UNIX®) is a computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs including Ken Thompson, Dennis Ritchie and Douglas McIlroy.
..... Click the link for more information.
..... Click the link for more information.
command line interface or CLI is a method of interacting with an operating system or software using a command line interpreter. This command line interpreter may be a text terminal, terminal emulator, or remote shell client such as PuTTY.
..... Click the link for more information.
..... Click the link for more information.
Printing: lp Communications: inetd netstat ping rlogin nc traceroute Searching: find grep strings Miscellaneous: banner bc cal dd man size yes
..... Click the link for more information.
..... Click the link for more information.
The cat command is a standard Unix program used to concatenate and display files. The name is from , a synonym of concatenate.
..... Click the link for more information.
Specification
The Single Unix Specification specifies the behavior that each of the files given in sequence as arguments will write their..... Click the link for more information.
chattr is a UNIX program that allows a user to set certain attributes to a file. Mostly chattr is used to make files immutable so that password files and certain system files cannot be erased during software upgrades.
..... Click the link for more information.
..... Click the link for more information.
cd, sometimes also available as chdir (change directory), is a command line command to change the current working directory in operating systems such as Unix, Windows and DOS.
..... Click the link for more information.
..... Click the link for more information.
The chmod command (abbreviated from change mode) is a shell command in Unix and Unix-like environments.
When executed, the command can change file system modes of files and directories. The modes include permissions and special modes.
..... Click the link for more information.
When executed, the command can change file system modes of files and directories. The modes include permissions and special modes.
..... Click the link for more information.
The chown command is used on Unix-like systems to change the owner of a file. In most implementations, it can only be executed by the Superuser. Unprivileged (regular) users who wish to change the group of a file that they own may use chgrp.
..... Click the link for more information.
..... Click the link for more information.
The chgrp command is used by unprivileged users on Unix-like systems to change the group associated with a file. Unlike the chown command, chgrp allows regular users to change groups, but only to one of which they are a member.
..... Click the link for more information.
..... Click the link for more information.
cksum is a POSIX command that reads the files specified by the File parameter and calculates a checksum, cyclic redundancy check (CRC) and the byte count for a file or files. If no files are specified, the cksum command reads standard input.
..... Click the link for more information.
..... Click the link for more information.
cmp is a command line utility for computer systems that use a Unix operating system. It compares two files of any type and writes the results to the standard output. By default, cmp is silent if the files are the same; if they differ, the byte and line number at which the first
..... Click the link for more information.
..... Click the link for more information.
..... Click the link for more information.
du (abbreviated from disk usage) is a standard Unix program used to estimate the file space usage; space used under a particular directory or files on a file system. History
Thedu utility first appeared in version 1 of AT&T UNIX...... Click the link for more information.
df (abbreviated from disk free) is a standard Unix computer program used to display the amount of available disk space for filesystems on which the invoking user has appropriate read access, df
..... Click the link for more information.
..... Click the link for more information.
file is a standard Unix program for determining the type of data contained in a file.
..... Click the link for more information.
History
The original version of file originated in Unix Research Version 4 in 1973...... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus