This is a handy snippet. If you need to quickly figure out which user is running what process in the system.

Selec All Code:
1
ps ax -o euser,egroup,comm

For example: To find the user running Apache2 in Ubuntu, run the following command:

Selec All Code:
1
ps ax -o euser,egroup,comm | grep apache2