added "more" command
[unix-history] / usr / src / usr.bin / who / who.1
CommitLineData
8a6242e1 1.\" @(#)who.1 6.1 (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
13.I Who,
14without an argument,
15lists the login name, terminal name, and login time
16for each current UNIX user.
17.PP
18Without an argument,
19.I who
35f1b24f
KM
20examines the
21.I /etc/utmp
abab0fe1
KM
22file to obtain its information.
23If a file is given, that file is examined.
24Typically the given file will be /usr/adm/wtmp,
25which contains a record of all the logins since it
26was created.
27Then
28.I who
29lists
30logins, logouts, and crashes since the creation of
31the wtmp file.
32Each login is listed with user name,
33terminal name (with `/dev/'
34suppressed),
35and date and time.
36When an argument is given, logouts produce a similar line without a user name.
37Reboots produce a line with `x' in the place of the device name,
38and a fossil time indicative of when the system went down.
39.PP
40With two arguments,
41as in `who am I' (and also `who are you'),
42.I who
43tells who you are logged in as.
44.SH FILES
45/etc/utmp
46.SH "SEE ALSO"
47getuid(2), utmp(5)