ps

Report a snapshot of the current processes

Options

NameDescription
-A, -eSelect all processes
-a <getsid>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 <pidlist>Select by process ID
--ppid <pidlist>Select by parent process ID. This selects the processes with a parent process ID in pidlist
--sid <sesslist>Select by session ID
--tty <ttylist>Select by terminal
U <userlist>Select by effective user ID (EUID) or name
-U <userlist>Select by real user ID (RUID) or name
-u <userlist>Select by effective user ID (EUID) or name
--User <userlist>Select by real user ID (RUID) or name
--user <userlist>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 <format>
  • Repeatable ♾
-M, Z(for SE Linux)
-y, -l
--cols <n>Set screen width
--columns <n>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 <namelist>Set namelist file
--lines <n>Set screen height
--no-headers, --no-headingPrint no header line at all
--rows <n>Set screen height
--sort <spec>Specify sorting order
--width <n>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