linux what user is running a process code example Example: check owner of process id linux ps -o user= -p PIDHERE