Use ps command to get all the processes under the current user system. code example Example: check owner of process id linux ps -o user= -p PIDHERE