BSD 3 development
[unix-history] / usr / man / man1 / who.1
CommitLineData
b0a27b14
BJ
1.TH WHO 1
2.SH NAME
3who \- who is on the system
4.SH SYNOPSIS
5.B who
6[ who-file ] [
7.B "am I"
8]
9.SH DESCRIPTION
10.I Who,
11without an argument,
12lists the login name, terminal name, and login time
13for each current UNIX user.
14.PP
15Without an argument,
16.I who
17examines the /etc/utmp
18file to obtain its information.
19If a file is given, that file is examined.
20Typically the given file will be /usr/adm/wtmp,
21which contains a record of all the logins since it
22was created.
23Then
24.I who
25lists
26logins, logouts, and crashes since the creation of
27the wtmp file.
28Each login is listed with user name,
29terminal name (with `/dev/'
30suppressed),
31and date and time.
32When an argument is given, logouts produce a similar line without a user name.
33Reboots produce a line with `x' in the place of the device name,
34and a fossil time indicative of when the system went down.
35.PP
36With two arguments,
37as in `who am I' (and also `who are you'),
38.I who
39tells who you are logged in as.
40.SH FILES
41/etc/utmp
42.SH "SEE ALSO"
43getuid(2), utmp(5)