Manual Page Result
0
Command: who | Section: 1 | Source: UNIX v10 | File: who.1
WHO(1) General Commands Manual 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 lo-
gin time for each current user. With the -i option, the report in-
cludes the number of minutes that the user's terminal has been idle.
With two arguments, as in 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
suppressed), and date and time. When an argument is given, logouts
produce a similar line without a user name. Reboots produce a line
with 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. (Actu-
ally, whois uses grep and can locate information by any useful key,
such as real name or telephone number.)
Last reports logins and logouts in reverse chronological order. Op-
tional 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, is logged in at reboots of the
system.
Upon interrupt, last tells how far back it has looked; upon quit (con-
trol-\) 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)
WHO(1)