w(1) (BSD Compatibility Package) w(1)
NAME
w - who is logged in, and what are they doing
SYNOPSIS
/usr/ucb/w [-hls] [user]
DESCRIPTION
The w command displays a summary of the current activity on the sys-
tem, including what each user is doing. The heading line shows the
current time of day, how long the system has been up, the number of
users logged into the system, and the load averages. The load average
numbers give the number of jobs in the run queue averaged over 1, 5,
and 15 minutes [cf. sar(1), -q option and mpstat(1M)].
The 7 fields displayed after the heading line are: 1) the user's login
name, 2) the name of the tty the user is on, 3) the time of day the
user logged on (in hours:minutes), 4) the idle time - that is, the
number of minutes since the user last typed anything (in
hours:minutes), 5) the CPU time used by all processes and their chil-
dren on that terminal (in minutes:seconds), 6) the CPU time used by
the currently active processes (in minutes:seconds), 7) the name and
arguments of the current process.
If a user name is included, output is restricted to that user.
OPTIONS
-h Suppress the heading.
-l Produce a long form of output, which is the default.
-s Produce a short form of output. In the short form, the tty is
abbreviated, the login time and CPU times are left off, as are
the arguments to commands.
EXAMPLES
$ w
3:38pm up 10 days, 8:03, 6 users, load average: 0.00, 0.00, 0.00
User tty login@ idle JCPU PCPU what
meer pts/17 7:50am 7:46 -sh
cle pts/2 11Jan95 3:59 -su
hannibal pts/1 Mon 4pm 26:48 rlogin ubahn
san pts/45 1:21pm 2:16 -ksh
reinsch pts/27 8:01am 7:36 -sh
hofu pts/49 8:26am 1 ksh
Page 1 Reliant UNIX 5.44 Printed 11/98
w(1) (BSD Compatibility Package) w(1)
The CPU time is only an estimate, in particular, if someone leaves a
background process running after logging out, the person currently on
that terminal is charged with the time.
Background processes are not shown, even though they account for much
of the load on the system.
Sometimes processes, typically those in the background, are printed
with null or garbaged arguments. In these cases, the name of the com-
mand is printed in parentheses.
w does not know about the conventions for detecting background jobs.
It will sometimes find a background job instead of the right one.
FILES
/var/adm/utmp
/dev/kmem
/dev/drum
SEE ALSO
ps(1), sar(1), who(1), mpstat(1M), whodo(1M), utmp(4).
Page 2 Reliant UNIX 5.44 Printed 11/98