LASTLOGIN(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

🌟 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 via libxo(3) in a selection of different human and machine readable formats. See xo_options(7) for details on command line arguments.
  • -f file β€” Open last login database file instead 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms