Last login: Tue 03 Nov 2026 on tty1
Archived edition.
Ten things the page says. Every one of them is on your machine right now — run the command above and check.
ps displays information about a selection of the active processes.[man]
If you want a repetitive update of the selection and the displayed information, use top instead.[man]
This version of ps accepts several kinds of options:[man]
1 UNIX options, which may be grouped and must be preceded by a dash.[man]
Options of different types may be freely mixed, but conflicts can appear.[man]
There are some synonymous options, which are functionally identical, due to the many standards and ps implementations that this ps is compatible with.[man]
By default, ps selects all processes with the same effective user ID (euid=EUID) as the current user and associated with the same terminal as the invoker.[man]
It displays the process ID (pid=PID), the terminal associated with the process (tname=TTY), the cumulated CPU time in [DD-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD).[man]
The use of BSD-style options will add process state (stat=STAT) to the default display and show the command args (args=COMMAND) instead of the executable name.[man]
You can override this with the PS_FORMAT environment variable.[man]
Find one process among all of them
Plain ps shows almost nothing. Learning -eo with your own columns is what turns it into an instrument.
$ ps
$ ps aux | head -5
$ ps -eo pid,ppid,user,etime,comm --sort=-etime | head -8
$ ps -o pid,comm -p $$
WHAT YOU SHOULD SEEA nearly empty default listing, then everything, then the longest-running processes first, then your own shell identified by $$.
Five questions, each one taking a term out of a line above. Ten points for each. Tap hear it to have a question read to you; answering plays the verdict.
QUESTION 1 OF 5
Which term completes this line from the page? “ps displays _____ about a selection of the active processes.”
From point 1 above.
QUESTION 2 OF 5
Which term completes this line from the page? “This _____ of ps accepts several kinds of options:”
From point 3 above.
QUESTION 3 OF 5
Which term completes this line from the page? “Options of different types may be freely mixed, but _____ can appear.”
From point 5 above.
QUESTION 4 OF 5
Which term completes this line from the page? “By default, ps selects all processes with the same effective user ID (euid=EUID) as the current user and _____ with the same terminal as the invoker.”
From point 7 above.
QUESTION 5 OF 5
Which term completes this line from the page? “The use of BSD-style options will add _____ state (stat=STAT) to the default display and show the command args (args=COMMAND) instead of the executable name.”
From point 9 above.
Answer all five to bank your points.
Five chapters, three voices. Tap one to jump — the player at the bottom of the screen follows.
Know someone with ten minutes and a terminal? Send them today's page. This is the card that appears when you post it:
The Operator has a dispatch on ps(1),
and he files them for subscribers only. It is free.
Join the club, or read about
the series.
MOTD is a weekday reading of one manual page already installed on your own
machine. Every statement is quoted from that page or from the GNU info
documentation beside it, and every edition names the command that shows you
the source.
archive ·
the operator ·
about ·
podcast ·
Feline Union