Sponsored Content
Full Discussion: ps vs ps -ef
Top Forums UNIX for Dummies Questions & Answers ps vs ps -ef Post 302571310 by h@foorsa.biz on Monday 7th of November 2011 04:48:34 AM
Old 11-07-2011
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:
Code:
ps ax
ps axu

To print a process tree:
Code:
ps -ejH
ps axjf

To get info about threads:
Code:
ps -eLf
ps axms

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:
Code:
ps -p 42 -o comm=

This User Gave Thanks to h@foorsa.biz For This Post:
 
All times are GMT -4. The time now is 09:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy