UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: prtChapter 2
Unix Commands
Next: Reference: pwd
 

ps

ps [options]

Report on active processes. In options, list arguments should either be separated by commas or put in double quotes. In comparing the amount of output produced, note that -e > -d > -a and -l > -f. In the BSD version, options work much differently; you can also display data for a single process.

Options

-a

List all processes except group leaders and processes not associated with a terminal.

-A

Same as -e. Solaris only.

-c

List scheduler data set by priocntl (an administrative command).

-d

List all processes except session leaders.

-e

List all processes.

-f

Produce a full listing.

-glist

List data only for specified list of group leader ID numbers (i.e., processes with same ID and group ID).

-G list

Show information for processes whose real group ID is found in list. Solaris only.

-j

Print the process group ID and session ID.

-l

Produce a long listing.

-nfile

Use the alternate file for the list of function names in the running kernel (default is /unix); obsolete as of SVR4.

-o format

Customize information according to format. Rarely used. Solaris only.

-plist

List data only for process IDs in list.

-slist

List data only for session leader IDs in list.

-tlist

List data only for terminals in list (e.g., tty1).

-ulist

List data only for usernames in list.

-U uidlist

Show information for processes whose real user ID is found in list. Solaris only.

-y

With -l, omit the F and ADDR columns and use kilobytes instead of pages for the RSS and SZ columns. Solaris only.


Previous: Reference: prtUNIX in a Nutshell: System V EditionNext: Reference: pwd
Reference: prtBook IndexReference: pwd

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System