122 lines
2.1 KiB
HTML
122 lines
2.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>ps(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>ps(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
ps - process status
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>ps</STRONG> [<STRONG>-alxU</STRONG>] [<STRONG>kernel</STRONG> <STRONG>mm</STRONG> <STRONG>fs</STRONG>]
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-a</STRONG> Print all processes with controlling terminals
|
|
|
|
<STRONG>-l</STRONG> Give long listing
|
|
|
|
<STRONG>-x</STRONG> Include processes without a terminal
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>ps</STRONG> <STRONG>-axl</STRONG> # Print all processes and tasks in long format
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Ps</EM> 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:
|
|
|
|
F Kernel flags:
|
|
001: free slot
|
|
002: no memory map
|
|
004: sending;
|
|
010: receiving
|
|
020: inform on pending signals
|
|
040: pending signals
|
|
100: being traced.
|
|
|
|
S
|
|
State:
|
|
R: runnable
|
|
W: waiting (on a message)
|
|
S: sleeping (i.e.,suspended on MM or FS)
|
|
Z: zombie
|
|
T: stopped
|
|
|
|
UID, PID, PPID, PGRP
|
|
The user, process, parent process and process group ID's.
|
|
|
|
SZ
|
|
Size of the process in kilobytes.
|
|
|
|
RECV
|
|
Process/task on which a receiving process is waiting or sleeping.
|
|
|
|
TTY
|
|
Controlling tty for the process.
|
|
|
|
TIME
|
|
Process' cumulative (user + system) execution time.
|
|
|
|
CMD Command line arguments of the process.
|
|
|
|
The files /<EM>dev</EM>/{<EM>mem</EM>,<EM>kmem</EM>} are used to read the system tables and command
|
|
line arguments from. Terminal names in /<EM>dev</EM> are used to generate the
|
|
mnemonic names in the TTY column, so <EM>ps</EM> is independent of terminal naming
|
|
conventions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|