[Next] [Previous] [Up] [Top] [Contents]

4.1 System Resources

4.1.3 ps - show status of active processes

ps is used to report on processes currently running on the system. The output format and valid options are very specific to the OS and program version in use.

Syntax

ps [options]

Common Options

BSD SVR4

-a -e all processes, all users

-e environment/everything

-g process group leaders as well

-l -l long format

-u -u user user oriented report

-x -e even processes not executed from terminals

-f full listing

-w report first 132 characters per line

note -- Because the ps command is highly system-specific, it is recommended that you consult the man pages of your system for details of options and interpretation of ps output.

Examples

{unix prompt 5} ps

PID TT STAT TIME COMMAND

15549 p0 IW 0:00 -tcsh (tcsh)

15588 p0 IW 0:00 man nice

15594 p0 IW 0:00 sh -c less /tmp/man15588

15595 p0 IW 0:00 less /tmp/man15588

15486 p1 S 0:00 -tcsh (tcsh)

15599 p1 T 0:00 emacs unixgrep.txt

15600 p1 R 0:00 ps


Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]