LAST(1) — HP-UX
NAME
last, lastb − indicate last logins of users and teletypes
SYNOPSIS
last [ −n ] [ name ... ] [ tty ... ]
lastb [ −n ] [ name ... ] [ tty ... ]
DESCRIPTION
Last will look back in the wtmp file that records all logins and logouts for information about a user, a teletype or any group of users and teletypes. Arguments specify names of users or teletypes of interest. Names of teletypes can be given fully or abbreviated. For example, last 0 is the same as last tty0. If multiple arguments are given, the information that 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. Last will print the sessions of the specified users and teletypes, most recent first, indicating when the session began, the duration of the session, and the teletype on which the session took place. If the session is still continuing or was cut short by a reboot, last so indicates.
The pseudo-user reboot logs in at reboots of the system, thus last reboot indicates the mean time between reboot.
Last with no arguments prints a record of all logins and logouts in reverse order. The −n option limits the report to n lines.
If last is interrupted, it indicates how far the search has progressed in wtmp. If interrupted with a quit signal (generated by a control-\), last indicates how far the search has progressed, and the search continues.
Lastb will look back in the btmp database to display bad login information.
DEPENDENCIES
Series 300 Diskless
An additional option, −c, can be specified after the −n option. The −c option displays login information for all nodes of a diskless cluster (see the Glossary).
AUTHOR
Last was developed by the University of California, Berkeley and HP.
FILES
/etc/btmpbad login data base
/etc/wtmplogin data base
SEE ALSO
Hewlett-Packard Company — May 11, 2021