|
|
1.1 root 1:
2:
3: ps Command ps
4:
5:
6:
7:
8: Print process status
9:
10: ppss [ -aaffggllmmnnrrttwwxx ] [ -cc _s_y_s ] [ -kk _m_e_m ]
11:
12: ps prints information about a process or processes. It prints
13: the information in fields, followed by the command name and ar-
14: guments. The fields include the following:
15:
16: TTTTYY The controlling terminal of the command, printed in short
17: form. ``44:'' means /dev/tty44 and ``??:'' means there
18: is no controlling terminal.
19:
20: PPIIDD Process id; necessary to know when the process is to be
21: killed.
22:
23: GGRROOUUPP PID of the group leader of the process; the shell started
24: up when the user logs in.
25:
26: PPPPIIDD PID of the parent of the process; very often a shell.
27:
28: UUIIDD User id or name of the owner.
29:
30: KK Size of the process in kilobytes.
31:
32: FF Process flag bits, as follows:
33: PPFFCCOORREE 00001 Process is in core
34: PPFFLLOOCCKK 00002 Process is locked in core
35: PPFFSSWWIIOO 00004 Swap I/O in progress
36: PPFFSSWWAAPP 00010 Process is swapped out
37: PPFFWWAAIITT 00020 Process is stopped (not waited)
38: PPFFSSTTOOPP 00040 Process is stopped (waited on)
39: PPFFTTRRAACC 00100 Process is being traced
40: PPFFKKEERRNN 00200 Kernel process
41: PPFFAAUUXXMM 00400 Auxiliary segments in memory
42: PPFFDDIISSPP 01000 Dispatch at earliest convenience
43: PPFFNNDDMMPP 02000 Command mode forbids dump
44: PPFFWWAAKKEE 04000 Wakeup requested
45:
46:
47: SS State of the process, as follows:
48: RR Ready to run (waiting for CPU time)
49: SS Stopped for other reasons (I/O completion, pause, etc.)
50: TT Being traced by another process
51: WW Waiting for an existent child
52: ZZ Zombie (dead, but parent not waiting)
53:
54:
55: EEVVEENNTT The condition which the process is anticipating; not ap-
56: plicable if the process is ready to run.
57:
58: CCVVAALL SSVVAALL IIVVAALL RRVVAALL
59: Scheduling information; bigger is better.
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
67:
68:
69: ps Command ps
70:
71:
72:
73: UUTTIIMMEE Time consumed while running in the program (in seconds).
74:
75: SSTTIIMMEE Time consumed while running in the system (in seconds).
76:
77: Normally, ps displays the TTY and PID fields of each active
78: process started on the caller's terminal, as well as the command
79: name and arguments. The following flags can alter this behavior.
80:
81: aa Display information about processes started from all ter-
82: minals.
83:
84: cc The next argument sys gives the system executable image
85: (default: /coherent). The namelist is searched for table
86: addresses.
87:
88: dd Print information about status of loadable drivers.
89:
90: ff Blank fields have `-' place-holders. This enables field-
91: oriented commands like sort and awk to process the output.
92:
93: gg Print the group leader field GROUP if the ll option is given.
94:
95: ll Long format. In addition to the TTY and PID fields, prints
96: the PPID, UID, K, F, S and EVENT fields.
97:
98: kk The next argument mem is the memory file (default:
99: /dev/mem).
100:
101: mm Print the scheduling fields CVAL, SVAL, IVAL and RVAL.
102:
103: nn Suppress the header line.
104:
105: rr Print the real size of the process, which includes the user
106: and auxiliary segments assigned to the process. Because the
107: user segment (usually 1 kilobyte) is shared by all processes
108: owned by that user, this may give a misleading total size
109: for all the user's processes.
110:
111: tt Print elapsed CPU time fields UTIME and STIME.
112:
113: ww Wide format output; print 132 columns instead of 80.
114:
115: xx Display processes which do not have a controlling terminal
116: (e.g. the swapper).
117:
118: ***** Files *****
119:
120: /ccoohheerreenntt -- Default system file
121: /ddeevv/mmeemm -- Default memory file
122: /ddeevv/ttttyy* -- List of terminal names
123:
124: ***** See Also *****
125:
126: commands, kill, mem, size, wait
127:
128:
129:
130: COHERENT Lexicon Page 2
131:
132:
133:
134:
135: ps Command ps
136:
137:
138:
139: ***** Notes *****
140:
141: Each process can modify or destroy its command name and ar-
142: guments. The state of the system changes even as ps runs.
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196: COHERENT Lexicon Page 3
197:
198:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.