LASTLOGIN(8)
π LASTLOGIN(8) π
okay so bestie, this is the LASTLOGIN(8) page from the System Manager's Manual, and it's literally all about last login times. yes, the whole vibe is βwho logged in last, where, and whenβ π
πΈ NAME πΈ
lastlogin β indicate last login time of users π
π¦ SYNOPSIS π¦
lastlogin [--libxo] [-f file] [-rt] [user ...]
β¨ DESCRIPTION β¨
The lastlogin utility will list the last login session of each specified user, or for all users by default. Like, if you donβt name anyone, it just does everyone. Each line of output contains the user name, the tty from which the session was conducted, any hostname, and the start time for the session. All of that, every line, no cap π«Ά
If more than one user is given, the session information for each user is printed in the order given on the command line. Otherwise, information for all users is printed. By default, the entries are sorted by user name. So yeah, order matters when you list users, and the default sort is by username β¨
The lastlogin utility differs from last(1) in that it only prints information regarding the very last login session. The last login database is never turned over or deleted in standard usage. Like, in standard usage itβs not doing the whole turnover/delete thing, periodt.
The following options are available:
--libxoβ Generate output vialibxo(3)in a selection of different human and machine readable formats. Seexo_options(7)for details on command line arguments.-f fileβ Open last login databasefileinstead of the system-wide database.-rβ Print the entries in reverse sorted order.-tβ Sort the elements by last login time, instead of user name.
π FILES π
/var/log/utx.lastloginβ last login database
π₯ SEE ALSO π₯
last(1), getutxent(3), libxo(3), xo_options(7), ac(8)
π AUTHORS π
John M. Vinopal wrote this program in January 1996 and contributed it to the NetBSD project. Philip Paeps added libxo(3) support in August 2018.
xoxo, Debian π August 28, 2018
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 1996 John M. Vinopal
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms