WHO(1) WHO(1) NAME who, whois, last - who is or was on the system SYNOPSIS who [ -i ] [ who-file ] who am i whois username last [ -f who-file ] [ userid ... ] [ terminal ] DESCRIPTION Who, without an argument, lists the login name, terminal name, and login time for each current user. With the -i option, the report includes the number of minutes that the user's terminal has been idle. With two arguments, as in `who am i', who tells who you are logged in as. Without an argument, who examines the file to obtain its information. If a file is given, that file is examined. Typically the given file will be which contains a record of all the logins since it was created. Then 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. Whois consults administrative files to identify the username. (Actually, whois uses grep and can locate informa- tion by any useful key, such as real name or telephone num- ber.) Last reports logins and logouts in reverse chronological order. Optional arguments restrict attention to selected userids or terminals. Terminals tty0, tty1, ... may be abbreviated 0, 1, ... By default, last examines the list of logins and logouts in option -f specifies a different file. Last reports userid, terminal, time on, and time off for all users, or for selected userids. A pseudo-user, `reboot', is logged in at reboots of the system. WHO(1) WHO(1) Upon interrupt, last tells how far back it has looked; upon quit (control-\) it tells how far and keeps on looking. EXAMPLES last reboot Report recent system outages. FILES SEE ALSO getuid(1), getuid(2), utmp(5), ac(8), tty(1), vwhois in vismon(9.1)