minix/man/man1/ps.1

89 lines
1.7 KiB
Groff
Raw Normal View History

2005-05-02 15:01:42 +02:00
.TH PS 1
.SH NAME
ps \- process status
.SH SYNOPSIS
\fBps \fR[\fR[\fB\-\fR]\fBalxE\fR]
2005-05-02 15:01:42 +02:00
.br
.de FL
.TP
\\fB\\$1\\fR
\\$2
..
.de EX
.TP 20
\\fB\\$1\\fR
# \\$2
..
.SH OPTIONS
2012-03-31 23:44:29 +02:00
.TP 5
.B \-a
# Print all processes with controlling terminals
.TP 5
.B \-l
# Give long listing
.TP 5
.B \-x
# Include processes without a terminal
.TP 5
.B \-E
# Print kernel endpoint numbers where pids are normally printed
2005-05-02 15:01:42 +02:00
.SH EXAMPLES
2012-03-31 23:44:29 +02:00
.TP 20
.B ps
# Show user's own processes in short format
.TP 20
.B ps \-axlE
# Print all processes and tasks in long format
.TP 20
.B ps \axlE
# Same -- the '\-' is optional
2005-05-02 15:01:42 +02:00
.SH DESCRIPTION
.PP
\fIPs\fR prints the status of active processes. Normally only the caller's own
processes are listed in short format (the PID, TTY, TIME and CMD fields as
explained below). The long listing contains:
.PP
2010-09-14 23:29:40 +02:00
ST
2005-05-02 15:01:42 +02:00
State:
R: runnable
W: waiting (on a message)
S: sleeping (i.e.,suspended on PM or VFS)
2005-05-02 15:01:42 +02:00
Z: zombie
T: stopped
.PP
UID, PID, PPID, PGRP
The user, process, parent process and process group ID's.
.PP
SZ
Size of the process in kilobytes.
.PP
RECV
Process/task on which a receiving process is waiting or sleeping.
.PP
TTY
Controlling tty for the process.
.PP
TIME
Process' cumulative (user + system) execution time.
.PP
CMD Command line arguments of the process.
.PP
.PP
The \fI/proc\fR file system is used to obtain the process information.
Terminal names in \fI/dev\fR are used to generate the
2005-05-02 15:01:42 +02:00
mnemonic names in the TTY column, so \fIps\fR is independent of terminal naming
conventions.
.SH NOTES
The '\-' option prefix is not required.
For marginal compatibility with System V usage, the hidden option
.B \-e
means the same as
.BR \-ax ,
and
.B \-f
is the same as
.BR \-l .
.\" edited by ASW 2004-12-14