OS Manuals

/usr/bin/lastb

Login utils from util-linux package newgrp last lastb login lslogins nologin sulogin

From util-linux-login 2.42.4-r2 (os), captured 2026-11-05 by running lastb --help (exit 0). permalink

Usage:
 lastb [options] [<username>...] [<tty>...]

Show a listing of last logged in users.

Options:
 -<number>            how many lines to show
 -a, --hostlast       display hostnames in the last column
 -d, --dns            translate the IP number back into a hostname
 -f, --file <file>    use a specific file instead of /var/log/btmp
 -F, --fulltimes      print full login and logout times and dates
 -i, --ip             display IP numbers in numbers-and-dots notation
 -n, --limit <number> how many lines to show
 -p, --present <time> display who were present at the specified time
 -R, --nohostname     don't display the hostname field
 -s, --since <time>   display the lines since the specified time
 -t, --until <time>   display the lines until the specified time
 -T, --tab-separated  use tabs as delimiters
     --time-format <format>  show timestamps in the specified <format>:
                               notime|short|full|iso
 -w, --fullnames      display full user and domain names
 -x, --system         display system shutdown entries and run level changes

 -h, --help           display this help
 -V, --version        display version

For more details see last(1).
Options (14)
OptionDescriptionSource
-a, --hostlastdisplay hostnames in the last columnhelp
-d, --dnstranslate the IP number back into a hostnamehelp
-f, --file fileuse a specific file instead of /var/log/btmphelp
-F, --fulltimesprint full login and logout times and dateshelp
-i, --ipdisplay IP numbers in numbers-and-dots notationhelp
-R, --nohostnamedon't display the hostname fieldhelp
-s, --since timedisplay the lines since the specified timehelp
-t, --until timedisplay the lines until the specified timehelp
-T, --tab-separateduse tabs as delimitershelp
--time-format formatshow timestamps in the specified <format>: notime|short|full|isohelp
-w, --fullnamesdisplay full user and domain nameshelp
-x, --systemdisplay system shutdown entries and run level changeshelp
-h, --helpdisplay this helphelp
-V, --versiondisplay versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.