ps – report a snapshot of the current processes.
ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top instead.
To see every process on the system using standard syntax:
To see every process on the system using BSD syntax:
To print a process tree:
To get info about threads:
To get security info:
ps -eo euser,ruser,suser,fuser,f,comm,label
To see every process running as root:
ps -U root -u root u