2
## 20_ps.1.dpatch by Craig Small <csmall@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fix ps manual page
7
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
8
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
11
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
15
-patch) patch $patch_opts -p1 < $0;;
16
-unpatch) patch $patch_opts -p1 -R < $0;;
18
echo >&2 "`basename $0`: script expects -patch|-unpatch as argum
25
--- procps/ps/ps.1.orig Thu Apr 1 22:20:02 2004
26
+++ procps/ps/ps.1 Thu Apr 1 22:23:09 2004
29
+.\" (The preceding line is a note to broken versions of man to tell
31
.\" Quick hack conversion by Albert Cahalan, 1998.
32
.\" Licensed under version 2 of the Gnu General Public License.
34
.\" invented this crap in 1973. Oh yeah, they did. Sorry.
36
.TH PS 1 "July 5, 1998" "Linux" "Linux User's Manual"
38
-ps \- report process status
40
+ps \- report a snapshot of the current processes.
55
ps gives a snapshot of the current processes. If you want
56
a repetitive update of this status, use top. This man
57
page documents the /proc-based version of ps, or tries to.
61
+.SH "COMMAND-LINE OPTIONS"
63
This version of ps accepts several kinds of options.
66
when options are preceeded by a dash. The PS_PERSONALITY environment
67
variable (described below) provides more detailed control of ps behavior.
69
-SIMPLE PROCESS SELECTION
70
+.SH "SIMPLE PROCESS SELECTION"
73
-A select all processes
75
-a select all with a tty except session leaders
77
r restrict output to running processes
78
x select processes without controlling ttys
79
--deselect negate selection
82
-PROCESS SELECTION BY LIST
83
+.SH "PROCESS SELECTION BY LIST"
86
-C select by command name
87
-G select by RGID (supports names)
88
-U select by RUID (supports names)
90
--user select by effective user name or ID
94
-OUTPUT FORMAT CONTROL
96
+.SH "OUTPUT FORMAT CONTROL"
101
-M add column for security data
103
v display virtual memory format
104
--format user-defined format
105
--context display security context format (NSA SELinux, etc.)
109
+.SH "OUTPUT MODIFIERS"
112
-H show process hierarchy (forest)
115
@@ -125,31 +136,40 @@
116
--rows set screen height
117
--sort specify sorting order
118
--width set screen width
122
+.SH "THREAD DISPLAY"
125
-L show threads, possibly with LWP and NLWP columns
126
-T show threads, possibly with SPID column
127
-m show threads after processes
128
H show threads as if they were processes
129
m show threads after processes
138
L list all format specifiers
140
--help print help message
141
--info print debugging info
142
--version print version
150
A increases the argument space (DecUnix)
151
M use alternate core (try -n or N instead)
152
W get swap info from ... not /dev/drum (try -n or N instead)
153
k use /vmcore as c-dumpfile (try -n or N instead)
162
User-defined format options ("o", "-o", "O", and "-O") offer
163
a way to specify individual output columns. Headers may be
164
@@ -251,14 +271,17 @@
165
will be destroyed by init(8) if the parent process exits.
173
FORKNOEXEC 1 forked but didn't exec
174
SUPERPRIV 4 used super-user privileges
177
+.SH "PROCESS STATE CODES"
183
D uninterruptible sleep (usually IO)
184
R runnable (on run queue)
186
@@ -266,23 +289,31 @@
187
W paging (2.4 kernels and older only)
189
Z a defunct ("zombie") process
192
For BSD formats and when the "stat" keyword is used, additional
193
characters may be displayed:
195
-< high-priority task
197
-L has pages locked into memory (for real-time and custom IO)
198
-s is a session leader
199
-+ is in the foreground process group
205
+has pages locked into memory (for real-time and custom IO)
209
+is in the foreground process group
214
Note that the values used in sorting are the internal values ps uses and not
215
the `cooked' values used in some of the output format fields. Pipe ps
216
output into the sort(1) command if you want to sort the cooked values.
218
-KEY LONG DESCRIPTION
221
+\fBKEY LONG DESCRIPTION\fR
222
c cmd simple name of executable
223
C cmdline full command line
224
f flags flags as in long format F field
225
@@ -309,14 +340,15 @@
227
v vsize total VM size in kB
228
y priority kernel scheduling priority
232
-AIX FORMAT DESCRIPTORS
233
+.SH "AIX FORMAT DESCRIPTORS"
235
This ps supports AIX format descriptors, which work somewhat like the
236
formatting codes of printf(1) and printf(3). For example, the normal
237
default output can be produced with this: ps -eo "%p %y %x %c"
244
@@ -333,14 +365,16 @@
251
-STANDARD FORMAT SPECIFIERS
252
+.SH "STANDARD FORMAT SPECIFIERS"
254
These may be used to control both output format and sorting.
255
For example: ps -eo pid,user,args --sort user
264
@@ -461,25 +495,51 @@
270
+.SH "ENVIRONMENT VARIABLES"
274
-ENVIRONMENT VARIABLES
275
The following environment variables could affect ps:
276
- COLUMNS Override default display width.
277
- LINES Override default display height.
278
- PS_PERSONALITY Set to one of posix,old,linux,bsd,sun,digital...
279
- CMD_ENV Set to one of posix,old,linux,bsd,sun,digital...
280
- I_WANT_A_BROKEN_PS Force obsolete command line interpretation.
281
- LC_TIME Date format.
282
- PS_COLORS Not currently supported.
283
- PS_FORMAT Default output format override.
284
- PS_SYSMAP Default namelist (System.map) location.
285
- PS_SYSTEM_MAP Default namelist (System.map) location.
286
- POSIXLY_CORRECT Don't find excuses to ignore bad "features".
287
- UNIX95 Don't find excuses to ignore bad "features".
288
- _XPG Cancel CMD_ENV=irix non-standard behavior.
292
+Override default display width.
295
+Override default display height.
298
+Set to one of posix,old,linux,bsd,sun,digital...
301
+Set to one of posix,old,linux,bsd,sun,digital...
303
+.B I_WANT_A_BROKEN_PS
304
+Force obsolete command line interpretation.
310
+Not currently supported.
313
+Default output format override.
316
+Default namelist (System.map) location.
319
+Default namelist (System.map) location.
322
+Don't find excuses to ignore bad "features".
325
+Don't find excuses to ignore bad "features".
328
+Cancel CMD_ENV=irix non-standard behavior.
330
In general, it is a bad idea to set these variables. The one exception
331
is CMD_ENV or PS_PERSONALITY, which could be set to Linux for normal
333
of the Unix98 standard.
340
390 like the S/390 OpenEdition ps
342
bsd like FreeBSD ps (totally non-standard)
352
To see every process on the system using standard syntax:
354
To see every process on the system using BSD syntax:
355
@@ -525,13 +587,13 @@
356
Print only the process IDs of syslogd:
357
ps -C syslogd -o pid=
360
-top(1) pgrep(1) pstree(1) proc(5)
362
+.BR top (1), pgrep (1), pstree (1), proc (5).
366
This ps conforms to version 2 of the Single Unix Specification.
370
ps was originally written by Branko Lankester <lankeste@fwi.uva.nl>. Michael
371
K. Johnson <johnsonm@redhat.com> re-wrote it significantly to use the proc
372
filesystem, changing a few things in the process. Michael Shields
374
<acahalan@cs.uml.edu> rewrote ps for full Unix98 and BSD support, along with
375
some ugly hacks for obsolete and foreign syntax.
377
-Please send bug reports to <acahalan@cs.uml.edu>
378
+Please send bug reports to <procps-feedback@lists.sf.net>.