ps
Report a snapshot of the current processes
Options
Name | Description |
---|---|
-A, -e | Select all processes |
-a <getsid> | Select all processes except both session leaders |
-d | Select all processes except session leaders |
--deselect | Select all processes except those that fulfill the specified conditions |
-N | Select 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 |
-c | Show different scheduler information for the -l option |
--context | Display security context format (for SE Linux) |
-f | Do full-format listing |
-F | Extra full format |
--format, -o, o <format> |
|
-M, Z | (for SE Linux) |
-y, -l | |
--cols <n> | Set screen width |
--columns <n> | Set screen width |
--cumulative | Include some dead child process data (as a sum with the parent) |
--forest | ASCII art process tree |
-H | Show process hierarchy (forest) |
--headers | Repeat header lines, one per page of output |
-n <namelist> | Set namelist file |
--lines <n> | Set screen height |
--no-headers, --no-heading | Print no header line at all |
--rows <n> | Set screen height |
--sort <spec> | Specify sorting order |
--width <n> | Set screen width |
-L | Show threads, possibly with LWP and NLWP columns |
-T | Show threads, possibly with SPID column |
--help | Print a help message |
--info | Print debugging info |
--version | Print the procps version |