ps
ps -fC nameNOTE: man ps
UID PID PPID C STIME TTY TIME CMD
root 1211 1 0 May19 ? 00:00:00 nginx: master process /usr/sbin/
www-data 1212 1211 0 May19 ? 00:00:14 nginx: worker process
www-data 1213 1211 0 May19 ? 00:00:00 nginx: worker processps | grep
ps aux | grep nameroot 1211 0.0 0.0 130760 36 ? Ss May19 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 1212 0.0 0.0 130760 1048 ? S May19 0:14 nginx: worker process
www-data 1213 0.0 0.0 130760 1048 ? S May19 0:00 nginx: worker process
luaz 22158 0.0 0.0 17184 1020 pts/3 S+ 20:05 0:00 grep --color=auto nginxPID only
pgrep nginx1211
1212
1213