The pgrep command

look up, signal, or wait for processes based on name and other attributes 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.

Examples

pgrep nginx

Just the PIDs

Lessons that use pgrep