ps -C
-C cmdlist
Select by command name. This selects the processes whose executable name is given in cmdlist.
ps -C nginx --no-header
--no-headers
Print no header line at all. --no-heading is an alias for this option.
-C cmdlist
Select by command name. This selects the processes whose executable name is given in cmdlist.
--no-headers
Print no header line at all. --no-heading is an alias for this option.