last(1) last(1)NAME last - displays login and logout times for each user of the system SYNOPSIS last [name]... [tty]... ARGUMENTS name Specifies the names of users who used the system last. tty Specifies the terminals that were used on the system. DESCRIPTION last will look back in the wtmp file which records all logins and logouts for information about a user, a terminal or any group of users and terminals. Arguments specify names of users or terminals of interest. Names of terminals may be given fully or abbreviated. For example, last 0 is the same as last tty0. If multiple arguments are given, the information which applies to any of the arguments is printed. For example, last root console would list all of ``root's'' sessions as well as all sessions on the console terminal. The last command reports the sessions of the specified users and terminals, most recent first, indicating start times, duration, and terminal for each. If the session is still continuing or was cut short by a reboot, last so indicates. The last command with no arguments prints a record of all logins and logouts, in reverse order. Since last can generate a great deal of output, piping it through the more program for screen viewing is advised. If last is interrupted with an Interrupt signal, (generated by CONTROL-C) it indicates how far the search has progressed in wtmp. If interrupted with a quit signal (generated by a CONTROL-\), last exits and dumps core. CONTROL-D (EOF) signal does nothing. Therefore exit gracefully from last with an interrupt signal. EXAMPLES The command: last reboot will give an indication of mean time between reboots of the system. January 1992 1
last(1) last(1)FILES /usr/bin/last Executable file /etc/wtmp Temporary file SEE ALSO acct(1M) in A/UX System Administrator's Reference utmp(4) in A/UX Programmer's Reference 2 January 1992