Print this page
2849 uptime should use locale settings for current time
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1m/whodo.1m
+++ new/usr/src/man/man1m/whodo.1m
1 1 '\" te
2 +.\" Copyright (c) 2013 Gary Mills
2 3 .\" Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
3 4 .\" Copyright 1989 AT&T
4 5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 -.TH WHODO 1M "Jun 18, 2003"
8 +.TH WHODO 1M "Dec 15, 2013"
8 9 .SH NAME
9 10 whodo \- who is doing what
10 11 .SH SYNOPSIS
11 12 .LP
12 13 .nf
13 14 \fB/usr/sbin/whodo\fR [\fB-h\fR] [\fB-l\fR] [\fIuser\fR]
14 15 .fi
15 16
16 17 .SH DESCRIPTION
17 18 .sp
18 19 .LP
19 20 The \fBwhodo\fR command produces formatted and dated output from information in
20 21 the \fB/var/adm/utmpx\fR and \fB/proc/pid\fR files.
21 22 .sp
22 23 .LP
23 24 The display is headed by the date, time, and machine name. For each user logged
24 25 in, device name, user-ID and login time is shown, followed by a list of active
25 26 processes associated with the user-ID. The list includes the device name,
26 27 process-ID, CPU minutes and seconds used, and process name.
27 28 .sp
28 29 .LP
29 30 If \fIuser\fR is specified, output is restricted to all sessions pertaining to
30 31 that user.
31 32 .SH OPTIONS
32 33 .sp
33 34 .LP
34 35 The following options are supported:
35 36 .sp
36 37 .ne 2
37 38 .na
38 39 \fB\fB-h\fR\fR
39 40 .ad
40 41 .RS 6n
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
41 42 Suppress the heading.
42 43 .RE
43 44
44 45 .sp
45 46 .ne 2
46 47 .na
47 48 \fB\fB-l\fR\fR
48 49 .ad
49 50 .RS 6n
50 51 Produce a long form of output. The fields displayed are: the user's login name,
51 -the name of the tty the user is on, the time of day the user logged in (in
52 -\fIhours\fR\fB:\fR\fIminutes\fR), the idle time \(em that is, the time since
53 -the user last typed anything (in \fIhours\fR\fB:\fR\fIminutes\fR), the CPU time
54 -used by all processes and their children on that terminal (in
55 -\fIminutes\fR\fB:\fR\fIseconds\fR), the CPU time used by the currently active
56 -processes (in \fIminutes\fR\fB:\fR\fIseconds\fR), and the name and arguments of
57 -the current process.
52 +the name of the tty the user is on, the time of day the user logged in
53 +(in ISO time format, weekday name and \fIhours\fR\fB:\fR\fIminutes\fR,
54 +or ISO date format),
55 +the idle time \(em that is, the time since the user last typed anything
56 +(in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
57 +the CPU time used by all processes and their children on that terminal
58 +(in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
59 +the CPU time used by the currently active processes
60 +(in \fIhours\fR\fB:\fR\fIminutes\fR\fB:\fR\fIseconds\fR),
61 +and the name and arguments of the current process.
58 62 .RE
59 63
60 64 .SH EXAMPLES
61 65 .LP
62 66 \fBExample 1 \fRUsing the whodo Command
63 67 .sp
64 68 .LP
65 69 The command:
66 70
67 71 .sp
68 72 .in +2
69 73 .nf
70 74 example% whodo
71 75 .fi
72 76 .in -2
73 77 .sp
74 78
75 79 .sp
76 80 .LP
77 81 produces a display like this:
78 82
79 83 .sp
80 84 .in +2
81 85 .nf
82 86 Tue Mar 12 15:48:03 1985
83 87 bailey
84 88 tty09 mcn 8:51
85 89 tty09 28158 0:29 sh
86 90
87 91 tty52 bdr 15:23
88 92 tty52 21688 0:05 sh
89 93 tty52 22788 0:01 whodo
90 94 tty52 22017 0:03 vi
91 95 tty52 22549 0:01 sh
92 96
93 97 xt162 lee 10:20
94 98 tty08 6748 0:01 layers
95 99 xt162 6751 0:01 sh
96 100 xt163 6761 0:05 sh
97 101 tty08 6536 0:05 sh
98 102 .fi
99 103 .in -2
100 104 .sp
101 105
102 106 .SH ENVIRONMENT VARIABLES
103 107 .sp
104 108 .LP
105 109 If any of the \fBLC_*\fR variables ( \fB\fR\fBLC_CTYPE\fR\fB,\fR
106 110 \fBLC_MESSAGES\fR\fB,\fR \fBLC_TIME\fR\fB,\fR \fBLC_COLLATE\fR\fB,\fR
107 111 \fBLC_NUMERIC\fR\fB,\fR and \fBLC_MONETARY\fR ) (see \fBenviron\fR(5)) are not
108 112 set in the environment, the operational behavior of \fBtar\fR(1) for each
109 113 corresponding locale category is determined by the value of the \fBLANG\fR
110 114 environment variable. If \fBLC_ALL\fR is set, its contents are used to override
111 115 both the \fBLANG\fR and the other \fBLC_*\fR variables. If none of the above
112 116 variables is set in the environment, the "C" (U.S. style) locale determines how
113 117 \fBwhodo\fR behaves.
114 118 .sp
115 119 .ne 2
116 120 .na
117 121 \fB\fBLC_CTYPE\fR\fR
118 122 .ad
119 123 .RS 15n
120 124 Determines how \fBwhodo\fR handles characters. When \fBLC_CTYPE\fR is set to a
121 125 valid value, \fBwhodo\fR can display and handle text and filenames containing
122 126 valid characters for that locale. The \fBwhodo\fR command can display and
123 127 handle Extended Unix code (EUC) characters where any individual character can
124 128 be 1, 2, or 3 bytes wide. \fBwhodo\fR can also handle EUC characters of 1, 2,
125 129 or more column widths. In the "C" locale, only characters from ISO 8859-1 are
126 130 valid.
127 131 .RE
128 132
129 133 .sp
130 134 .ne 2
131 135 .na
132 136 \fB\fBLC_MESSAGES\fR\fR
133 137 .ad
134 138 .RS 15n
135 139 Determines how diagnostic and informative messages are presented. This includes
136 140 the language and style of the messages, and the correct form of affirmative and
137 141 negative responses. In the "C" locale, the messages are presented in the
138 142 default form found in the program itself (in most cases, U.S. English).
139 143 .RE
140 144
141 145 .sp
142 146 .ne 2
143 147 .na
144 148 \fB\fBLC_TIME\fR\fR
145 149 .ad
146 150 .RS 15n
147 151 Determines how \fBwhodo\fR handles date and time formats. In the "C" locale,
148 152 date and time handling follow the U.S. rules.
149 153 .RE
150 154
151 155 .SH EXIT STATUS
152 156 .sp
153 157 .LP
154 158 The following exit values are returned:
155 159 .sp
156 160 .ne 2
157 161 .na
158 162 \fB\fB0\fR\fR
159 163 .ad
160 164 .RS 12n
161 165 Successful completion.
162 166 .RE
163 167
164 168 .sp
165 169 .ne 2
166 170 .na
167 171 \fBnon-zero\fR
168 172 .ad
169 173 .RS 12n
170 174 An error occurred.
171 175 .RE
172 176
173 177 .SH FILES
174 178 .sp
175 179 .ne 2
176 180 .na
177 181 \fB\fB/etc/passwd\fR\fR
178 182 .ad
179 183 .RS 18n
180 184 System password file
181 185 .RE
182 186
183 187 .sp
184 188 .ne 2
185 189 .na
186 190 \fB\fB/var/adm/utmpx\fR\fR
187 191 .ad
188 192 .RS 18n
189 193 User access and administration information
190 194 .RE
191 195
192 196 .sp
193 197 .ne 2
194 198 .na
195 199 \fB\fB/proc/pid\fR\fR
196 200 .ad
197 201 .RS 18n
198 202 Contains PID
199 203 .RE
200 204
201 205 .SH SEE ALSO
202 206 .sp
203 207 .LP
204 208 \fBps\fR(1), \fBwho\fR(1), \fBattributes\fR(5), \fBenviron\fR(5)
↓ open down ↓ |
137 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX