macOS / binaries /

last

/usr/bin/last
Indicate last logins of users and ttys

last will list the sessions of specified users, ttys, and hosts, in reverse time order. Each line of output contains the user name, the tty from which the session was conducted, any hostname, the start and stop times for the session, and the duration of the session.

source: man