The command are
From the man page:
last, lastb - show listing of last logged in users
last [-R] [-num] [ -n num ] [-adFiowx] [ -f file ] [ -t YYYYMMDDHHMMSS
] [name...] [tty...]
lastb [-R] [-num] [ -n num ] [ -f file ] [-adFiowx] [name...] [tty...]
Last searches back through the file /var/log/wtmp (or the file desig‐
nated by the -f flag) and displays a list of all users logged in (and
out) since that file was created. Names of users and tty's can be
given, in which case last will show only those entries matching the
arguments. Names of ttys can be abbreviated, thus last 0 is the same
as last tty0.
The other is a variation of the first and shows a list of reboots on the pc or server.
last rebootFrom the man page:
The pseudo user reboot logs in each time the system is rebooted. Thus
last reboot will show a log of all reboots since the log file was cre‐
Hope this helps.