ps

Report a snapshot of the current processes

Options

NameDescription
-A,-eSelect all processes
-a <command>Select all processes except both session leaders
-dSelect all processes except session leaders
--deselectSelect all processes except those that fulfill the specified conditions
-NSelect all processes except those that fulfill the specified conditions (negates the selection)
--pid <command>Select by process ID
--ppid <command>Select by parent process ID. This selects the processes with a parent process ID in pidlist
--sid <command>Select by session ID
--tty <command>Select by terminal
U <command>Select by effective user ID (EUID) or name
-U <command>Select by real user ID (RUID) or name
-u <command>Select by effective user ID (EUID) or name
--User <command>Select by real user ID (RUID) or name
--user <command>Select by effective user ID (EUID) or name
-cShow different scheduler information for the -l option
--contextDisplay security context format (for SE Linux)
-fDo full-format listing
-FExtra full format
--format,-o,o <command>
  • Repeatable ♾
-M,Z(for SE Linux)
-y,-l
--cols <command>Set screen width
--columns <command>Set screen width
--cumulativeInclude some dead child process data (as a sum with the parent)
--forestASCII art process tree
-HShow process hierarchy (forest)
--headersRepeat header lines, one per page of output
-n <command>Set namelist file
--lines <command>Set screen height
--no-headers,--no-headingPrint no header line at all
--rows <command>Set screen height
--sort <command>Specify sorting order
--width <command>Set screen width
-LShow threads, possibly with LWP and NLWP columns
-TShow threads, possibly with SPID column
--helpPrint a help message
--infoPrint debugging info
--versionPrint the procps version