Try running ps -eo user,comm | grep nginx
It will print something like:
root nginx
nginx nginx
nginx nginx
or
root nginx
www-data nginx
www-data nginx
Ignore the first line, the user is on the left side starting from line 2.
Try running ps -eo user,comm | grep nginx
It will print something like:
root nginx
nginx nginx
nginx nginx
or
root nginx
www-data nginx
www-data nginx
Ignore the first line, the user is on the left side starting from line 2.