Process Management
pgrep
Searches processes by name and lists PIDs.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$pgrep [OPTIONS] PATTERN
Examples
$pgrep firefox
$pgrep -f script
Typical use cases
?
Standard usage
pgrep --help
Note
Complements pkill.
Export