To see every process on the system using standard syntax:
Code:
ps -e
ps -ef
ps -eF
ps -ely
To see every process on the system using BSD syntax:
To print a process tree:
To get info about threads:
To get security info:
Code:
ps -eo euser,ruser,suser,fuser,f,comm,label
ps axZ
ps -eM
To see every process running as root (real & effective ID) in user format:
Code:
ps -U root -u root u
To see every process with a user-defined format:
Code:
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
ps -eopid,tt,user,fname,tmout,f,wchan
Print only the process IDs of syslogd:
Code:
ps -C syslogd -o pid=
Print only the name of PID 42: