.TH WHO 1 .SH NAME who, whois \- who is on the system .SH SYNOPSIS .B who .RB [ \-i ] [ who-file ] .PP .B who am i .PP .B whois username .SH DESCRIPTION .I who, without an argument, lists the login name, terminal name, and login time for each current UNIX user. With the .B \-i option, the report includes the number of minutes that the user's terminal has been idle. .PP With two arguments, as in `who am I' (and also `who are you'), .I who tells who you are logged in as. .PP Without an argument, .I who examines the /etc/utmp file to obtain its information. If a file is given, that file is examined. Typically the given file will be /usr/adm/wtmp, which contains a record of all the logins since it was created. Then .I who lists logins, logouts, and crashes since the creation of the wtmp file. Each login is listed with user name, terminal name (with `/dev/' suppressed), and date and time. When an argument is given, logouts produce a similar line without a user name. Reboots produce a line with `x' in the place of the device name, and a fossil time indicative of when the system went down. .PP .I whois consults administrative files to identify the .I username. (Actually, .I whois uses .IR grep (1) and can locate information by any useful key, such as real name or telephone number.) .SH FILES .nf /etc/utmp /usr/adm/usrlist /etc/passwd .fi .SH "SEE ALSO" last(1), getuid(1), getuid(2), utmp(5), wtmp(5)