Analyze. Act. Achieve.
Kurinchilion KURINCHILION Analyze. Act. Achieve.

Articles

Linux: Check log, user login, system reboot

To display messages from the log $ cat /var/log/messages | more

To show users who are logged in to the system $ who

To show the list of users who have logged in last $ last

To show the list of all reboots $ last reboot

To print the content of the last login log from /var/log/lastlog $ lastlog