Jump to content

Lastlog

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Tech201805 (talk | contribs) at 08:53, 3 July 2018 (binary database file). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

lastlog is a program available on most Linux distributions. It formats and prints the contents of the last login log file, /var/log/lastlog (which is a usually a very sparse file), including the login name, port, and last login date and time. It is similar in functionality to the BSD program last, also included in linux distributions; however, last parses a different binary database file (/var/log/wtmp and /var/log/btmp).