BSD 4_3_Reno release
[unix-history] / usr / src / usr.bin / who / who.1
CommitLineData
daacd5f0
CL
1.\" Copyright (c) 1990 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
abab0fe1 4.\"
1c15e888 5.\" @(#)who.1 6.3 (Berkeley) 6/24/90
daacd5f0
CL
6.\"
7.TH WHO 1 "%Q"
abab0fe1
KM
8.AT 3
9.SH NAME
10who \- who is on the system
11.SH SYNOPSIS
12.B who
13[ who-file ] [
14.B "am I"
15]
16.SH DESCRIPTION
daacd5f0 17\fIWho,\fP without any argument, reads the /var/run/utmp file,
90b37ef8
KB
18and lists the login name, terminal name, and login time for each
19user currently logged into the system. If a single argument is
daacd5f0
CL
20given, \fIwho\fP uses that file instead of /var/run/utmp. Typically,
21that file will be /var/log/wtmp, which contains a record of all
90b37ef8
KB
22the logins, logouts, crashes, shutdowns and time changes since it
23was created. In either case, each login will be listed with the
24user name, the terminal name (with "/dev/" suppressed), login date
25and time, and, if applicable, the host logged in from.
abab0fe1 26.PP
daacd5f0 27If /var/log/wtmp is being used as the file, the user name may be empty
90b37ef8
KB
28or one of the special characters '|', '}' and '~'. Logouts produce
29an output line without any user name. For more information on the
30special characters, see utmp(5).
abab0fe1 31.PP
90b37ef8
KB
32With two arguments, as in `who am I' (and also `who are you'),
33\fIwho\fP tells you who you are logged in as.
abab0fe1 34.SH FILES
90b37ef8 35.DT
daacd5f0 36/var/run/utmp
90b37ef8 37.br
daacd5f0 38/var/log/wtmp
abab0fe1 39.SH "SEE ALSO"
90b37ef8 40last(1), users(1), getuid(2), utmp(5)