Step 1/1: Find processes by name

pgrep NAME prints the ids of matching processes, no ps | grep needed; -l adds names, -u USER limits to one user, -f matches the whole command line.

$ pgrep nginx
Fundamentalspgrep
Find a process id by name
Use pgrep to print the ids of the nginx processes.
psNext lesson:pstree