Commit | Line | Data |
---|---|---|
90b37ef8 | 1 | .\" @(#)who.1 6.2 (Berkeley) %G% |
abab0fe1 | 2 | .\" |
8a6242e1 | 3 | .TH WHO 1 "" |
abab0fe1 KM |
4 | .AT 3 |
5 | .SH NAME | |
6 | who \- 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, |
14 | and lists the login name, terminal name, and login time for each | |
15 | user currently logged into the system. If a single argument is | |
16 | given, \fIwho\fP uses that file instead of /etc/utmp. Typically, | |
17 | that file will be /usr/adm/wtmp, which contains a record of all | |
18 | the logins, logouts, crashes, shutdowns and time changes since it | |
19 | was created. In either case, each login will be listed with the | |
20 | user name, the terminal name (with "/dev/" suppressed), login date | |
21 | and time, and, if applicable, the host logged in from. | |
abab0fe1 | 22 | .PP |
90b37ef8 KB |
23 | If /usr/adm/wtmp is being used as the file, the user name may be empty |
24 | or one of the special characters '|', '}' and '~'. Logouts produce | |
25 | an output line without any user name. For more information on the | |
26 | special characters, see utmp(5). | |
abab0fe1 | 27 | .PP |
90b37ef8 KB |
28 | With 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 | 36 | last(1), users(1), getuid(2), utmp(5) |