Research V7 development
[unix-history] / usr / man / man1 / ps.1
CommitLineData
ffda7c61
KT
1.TH PS 1 PDP11
2.SH NAME
3ps \- process status
4.SH SYNOPSIS
5.B ps
6[
7.B aklx
8]
9[ namelist ]
10.SH DESCRIPTION
11.I Ps
12prints certain indicia about active
13processes.
14The
15.B a
16option asks for information about all processes with terminals (ordinarily
17only one's own processes are displayed);
18.B x
19asks even about processes with no terminal;
20.B l
21asks for a long listing.
22The short listing contains the process ID, tty letter,
23the cumulative execution time of the process and an
24approximation to the command line.
25.PP
26The long listing is columnar and contains
27.TP
28F
29Flags associated with the process.
3001: in core;
3102: system process;
3204: locked in core (e.g. for physical I/O);
3310: being swapped;
3420: being traced by another process.
35.TP
36S
37The state of the process.
380: nonexistent;
39S: sleeping;
40W: waiting;
41R: running;
42I: intermediate;
43Z: terminated;
44T: stopped.
45.TP
46UID
47The user ID of the process owner.
48.TP
49PID
50The process ID of the process; as in certain cults it is possible to kill a process
51if you know its true name.
52.TP
53PPID
54The process ID of the parent process.
55.TP
56CPU
57Processor utilization for scheduling.
58.TP
59PRI
60The priority of the
61process; high numbers mean low priority.
62.TP
63NICE
64Used in priority computation.
65.TP
66ADDR
67The core address of the process if resident,
68otherwise the disk address.
69.TP
70SZ
71The size in blocks of the core image of the process.
72.TP
73WCHAN
74The event for which the process is waiting or sleeping;
75if blank, the process is running.
76.TP
77TTY
78The controlling tty for the process.
79.TP
80TIME
81The cumulative execution time for the process.
82.TP TIME
83The command and its arguments.
84.DT
85.PP
86A process that has exited and has a parent, but has not
87yet been waited for by the parent is marked <defunct>.
88.I Ps
89makes an educated guess as to the file name
90and arguments given when the process was created
91by examining core memory or the swap area.
92The method is inherently somewhat unreliable and in any event
93a process is entitled to destroy this information,
94so the names cannot be counted on too much.
95.PP
96If the
97.B k
98option is specified,
99the file
100.I /usr/sys/core
101is used in place of
102.IR /dev/mem .
103This is used for
104postmortem system debugging.
105If a second argument is given,
106it is taken to be the file containing the system's namelist.
107.SH FILES
108.ta \w'/usr/sys/core 'u
109/unix system namelist
110.br
111/dev/mem core memory
112.br
113/usr/sys/core alternate core file
114.br
115/dev searched to find swap device and tty names
116.SH "SEE ALSO"
117kill(1)
118.SH BUGS
119Things can change while
120.I ps
121is running; the picture it gives is only a close
122approximation to reality.
123.br
124Some data printed for defunct processes is irrelevant