xref: /original-bsd/usr.bin/w/w.1 (revision 1e395994)
Copyright (c) 1980, 1990 Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)w.1 6.6 (Berkeley) 07/27/90

W 1 "%Q"
C 4
NAME
w - who is logged in and what they are doing
SYNOPSIS
w [ -hi ] [ user ]
DESCRIPTION
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.

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.

The -h flag suppresses the heading. The -i flag causes output to sorted by idle time. The -flsuw flags are no longer supported.

If a user name is included, the output will be restricted to that user.

FILES
/var/run/utmp

/dev/kmem

/dev/drum

"SEE ALSO"
who(1), finger(1), ps(1)
BUGS

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.