PS(1) User Commands PS(1)

ps - process status

ps [-aAcdefjlLPRy] [-o property[=[title]], ...] ... [-gGpstuU criteria, ...] ... [-r sysname]

Ps prints certain indicia about active processes. If no options are specified, all processes on the current terminal are selected; /usr/5bin/posix/ps and /usr/5bin/posix2001/ps further restrict this to processes owned by the invoking user. The selection can be changed by adding criteria with the options below; when a process satifies any criterion, it is selected. A criteria string can consist of multiple criteria separated by blanks or commas.

By default, ps prints the process id, controlling terminal device, cumulative execution time and command of processes.

The ps command accepts the following options:

Selects all processes with a controlling terminal device, except for session leaders.
Adds scheduling class and priority to the output. This is the default with /usr/5bin/s42/ps. See below for the meaning of columns.
Selects all processes except session leaders.
Selects all processes.
Full listing; adds user name, parent process id, processor utilization, and the time when the process was started. See below for the meaning of columns.
For /usr/5bin/ps and /usr/5bin/s42/ps, all processes that belong to one of the process groups ids in pgrplist are selected; for /usr/5bin/posix/ps and /usr/5bin/posix2001/ps, all processes that belong to one of the session ids in group.
Adds process group id and session id to the output. See below for the meaning of columns.
Long listing; adds process flags, process state, numeric user id, parent process id, processor utilization, priority, nice value, core address, memory size in pages and the event waited for. See below for the meaning of columns.
Selects all processes with one of the given process ids.
Change the root directory to sysname, which may be