Linux is a multi-user operating system, meaning that more than one person can be logged into a computer at the same time. To see the login history of all the computer’s users, use the “last” command in the Linux terminal window. Variations of the “last” command can show you the history of one particular user, or the IP addresses of any computers used to log in from, provided the Linux system can be accessed by remote computers.
Open the Linux terminal window. The terminal window can be found under the “System Tools,” “Utilities” or “Accessories” section of the main menu depending on your distribution.
Type the “last” in the terminal window and press Enter to see the login history of all users.
Type the command “last” in the terminal window, replacing “” with the username for a particular user.
Type the command “last -a” to see the login history and the IP addresses of the computers used.
Type “exit” and press the Enter key to close the terminal window.