community man page
pgrep
Find processes by name.
Examples
Return PIDs of any running processes with a matching command string GNU
Also display the full command GNU
Search for processes including their command-line options GNU
Search for processes run by a specific user GNU
Return PIDs of any running processes with a matching command string
Print the process name in addition to the PID (long output)
Match processes against the full argument list instead of just the process name
Print the PID together with the full argument list for each match
Search for processes run by a specific user (effective UID)
Select only the newest (most recently started) matching process