pgrep
pgrep is a Linux command in the Process Management category, rated intermediate difficulty. Looks up processes by name and returns their PIDs. The syntax is pgrep [options] pattern. Key options and parameters: pattern — process name pattern. It returns process IDs. A close relative is ps, which reports a snapshot of current processes. A close relative is top, which real-time interactive process viewer. Updates every few seconds. A close relative is kill, which sends a signal to a process. Default signal is SIGTERM (terminate). More about this category: Linux process management commands — ps, top, kill, killall, pgrep, and more. Manage running processes and system resources. Related Process Management commands: ps, top, kill, killall, pkill, nice, renice, nohup. This page is part of the free Linux Reference documentation covering 304+ commands, each with syntax, options, practical examples, and a difficulty rating.