[9] | 1 | .TH PS 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | ps \- process status
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | \fBps \fR[\fR[\fB\-\fR]\fBalx\fR]
|
---|
| 6 | .br
|
---|
| 7 | .de FL
|
---|
| 8 | .TP
|
---|
| 9 | \\fB\\$1\\fR
|
---|
| 10 | \\$2
|
---|
| 11 | ..
|
---|
| 12 | .de EX
|
---|
| 13 | .TP 20
|
---|
| 14 | \\fB\\$1\\fR
|
---|
| 15 | # \\$2
|
---|
| 16 | ..
|
---|
| 17 | .SH OPTIONS
|
---|
| 18 | .FL "\-a" "Print all processes with controlling terminals"
|
---|
| 19 | .FL "\-l" "Give long listing"
|
---|
| 20 | .FL "\-x" "Include processes without a terminal"
|
---|
| 21 | .SH EXAMPLES
|
---|
| 22 | .EX "ps " "Show user's own processes in short format"
|
---|
| 23 | .EX "ps \-axl" "Print all processes and tasks in long format"
|
---|
| 24 | .EX "ps \axl" "Same -- the '\-' is optional"
|
---|
| 25 | .SH DESCRIPTION
|
---|
| 26 | .PP
|
---|
| 27 | \fIPs\fR prints the status of active processes. Normally only the caller's own
|
---|
| 28 | processes are listed in short format (the PID, TTY, TIME and CMD fields as
|
---|
| 29 | explained below). The long listing contains:
|
---|
| 30 | .PP
|
---|
| 31 | .ta 0.5i 1.0i
|
---|
| 32 | F Kernel flags:
|
---|
| 33 | 001: free slot
|
---|
| 34 | 002: no memory map
|
---|
| 35 | 004: sending;
|
---|
| 36 | 010: receiving
|
---|
| 37 | 020: inform on pending signals
|
---|
| 38 | 040: pending signals
|
---|
| 39 | 100: being traced.
|
---|
| 40 | .PP
|
---|
| 41 | S
|
---|
| 42 | State:
|
---|
| 43 | R: runnable
|
---|
| 44 | W: waiting (on a message)
|
---|
| 45 | S: sleeping (i.e.,suspended on MM or FS)
|
---|
| 46 | Z: zombie
|
---|
| 47 | T: stopped
|
---|
| 48 | .PP
|
---|
| 49 | UID, PID, PPID, PGRP
|
---|
| 50 | The user, process, parent process and process group ID's.
|
---|
| 51 | .PP
|
---|
| 52 | SZ
|
---|
| 53 | Size of the process in kilobytes.
|
---|
| 54 | .PP
|
---|
| 55 | RECV
|
---|
| 56 | Process/task on which a receiving process is waiting or sleeping.
|
---|
| 57 | .PP
|
---|
| 58 | TTY
|
---|
| 59 | Controlling tty for the process.
|
---|
| 60 | .PP
|
---|
| 61 | TIME
|
---|
| 62 | Process' cumulative (user + system) execution time.
|
---|
| 63 | .PP
|
---|
| 64 | CMD Command line arguments of the process.
|
---|
| 65 | .PP
|
---|
| 66 | .PP
|
---|
| 67 | The files \fI/dev/{mem,kmem}\fR are used to read the system tables and command
|
---|
| 68 | line arguments from. Terminal names in \fI/dev\fR are used to generate the
|
---|
| 69 | mnemonic names in the TTY column, so \fIps\fR is independent of terminal naming
|
---|
| 70 | conventions.
|
---|
| 71 | .SH NOTES
|
---|
| 72 | The '\-' option prefix is not required.
|
---|
| 73 | For marginal compatibility with System V usage, the hidden option
|
---|
| 74 | .B \-e
|
---|
| 75 | means the same as
|
---|
| 76 | .BR \-ax ,
|
---|
| 77 | and
|
---|
| 78 | .B \-f
|
---|
| 79 | is the same as
|
---|
| 80 | .BR \-l .
|
---|
| 81 |
|
---|
| 82 | .\" edited by ASW 2004-12-14
|
---|
| 83 |
|
---|