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