Commit | Line | Data |
---|---|---|
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 | |
10 | who \- 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 |
18 | and lists the login name, terminal name, and login time for each |
19 | user currently logged into the system. If a single argument is | |
daacd5f0 CL |
20 | given, \fIwho\fP uses that file instead of /var/run/utmp. Typically, |
21 | that file will be /var/log/wtmp, which contains a record of all | |
90b37ef8 KB |
22 | the logins, logouts, crashes, shutdowns and time changes since it |
23 | was created. In either case, each login will be listed with the | |
24 | user name, the terminal name (with "/dev/" suppressed), login date | |
25 | and time, and, if applicable, the host logged in from. | |
abab0fe1 | 26 | .PP |
daacd5f0 | 27 | If /var/log/wtmp is being used as the file, the user name may be empty |
90b37ef8 KB |
28 | or one of the special characters '|', '}' and '~'. Logouts produce |
29 | an output line without any user name. For more information on the | |
30 | special characters, see utmp(5). | |
abab0fe1 | 31 | .PP |
90b37ef8 KB |
32 | With 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 | 40 | last(1), users(1), getuid(2), utmp(5) |