LAST(1) - General Commands Manual # LAST(1) - General Commands Manual
NAME # last - indicate last logins of users, ttys, and hosts
SYNOPSIS # last [-csT] [-d date] [-f file] [-h host] [-n number] [-t tty] [user …]
DESCRIPTION # The last utility will either list the sessions of specified users, ttys, and hosts, in reverse time order, or list the users logged in at a specified snapshot date and time in reverse time order.
...
LASTCOMM(1) - General Commands Manual # LASTCOMM(1) - General Commands Manual
NAME # lastcomm - show last commands executed in reverse order
SYNOPSIS # lastcomm [-f file] [command …] [user …] [terminal …]
DESCRIPTION # lastcomm gives information on previously executed commands. With no arguments, lastcomm prints information about all the commands recorded during the current accounting file’s lifetime.
The options are as follows:
-f file
Read from file rather than the default accounting file.
...
USERS(1) - General Commands Manual # USERS(1) - General Commands Manual
NAME # users - list current users
SYNOPSIS # users
DESCRIPTION # users lists the login names of the users currently on the system, in sorted order, space separated, on a single line.
FILES # /var/run/utmp
SEE ALSO # finger(1), last(1), who(1), utmp(5)
HISTORY # The users command appeared in 3.0BSD.
OpenBSD 7.5 - May 31, 2007
UTMP(5) - File Formats Manual # UTMP(5) - File Formats Manual
NAME # utmp, wtmp, lastlog - login records
SYNOPSIS # #include <utmp.h>
DESCRIPTION # The <utmp.h> file declares the structures used to record information about current users in the utmp file, logins and logouts in the wtmp file, and last logins in the lastlog file. The timestamps of date changes, shutdowns, and reboots are also logged in the wtmp file.
...
WHO(1) - General Commands Manual # WHO(1) - General Commands Manual
NAME # who - display who is logged in
SYNOPSIS # who [-HmqTu] [file]
who am i
DESCRIPTION # The who utility displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login, and hostname if not local.
The options are as follows:
-H
Write column headings above the regular output.
...