TOOL » LINUX » PACKAGE

Pgrep

Usage

Matches PATTERN against currently running process names.

shell
pgrep OPTIONS PATTERN
OptionDescription
-l --list-namePrint PID and process name.
-a --list-fullPrint PID and the full command line.
-f --fullMakes PATTERN match the full command line instead.
-x --exactOnly match processes whose names exactly match PATTERN.