4.3BSD-Reno/src/usr.bin/w/w.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1980, 1990 Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted provided
.\" that: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" Neither the name of the University nor the names of its contributors may
.\" be used to endorse or promote products derived from this software without
.\" specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"     @(#)w.1	6.6 (Berkeley) 7/27/90
.\"
.TH W 1 "%Q"
.UC 4
.SH NAME
w \- who is logged in and what they are doing
.SH SYNOPSIS
.B w
[
.B \-hi
] [ user ]
.SH DESCRIPTION
.I W
prints a summary of the current activity on the system,
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.
.PP
The fields output are:
the users login name,
the name of the tty the user is on,
the host from which the user is logged in,
the time the user logged on,
the time since the user last typed anything,
the name and arguments of the current process.
.PP
The
.B \-h
flag suppresses the heading.
The
.B \-i
flag causes output to sorted by idle time.
The
.B \-flsuw
flags are no longer supported.
.PP
If a
.I user
name is included,
the output will be restricted to that user.
.SH FILES
.ta 1i
/var/run/utmp
.br
/dev/kmem
.br
/dev/drum
.SH "SEE ALSO"
who(1), finger(1), ps(1)
.SH BUGS
.PP
Sometimes processes, typically those in the background, are
printed with null or garbaged arguments.
In these cases, the name of the command is printed in parentheses.