Use last command to display a list of all logins, logouts and reboots. The most recent entry (activity) is at the top of the output. The last command reads the binary file /var/adm/wtmpx in order to get requested data.