Forrest logo
back to the lslogins tool

lslogins:tldr:72a88

lslogins: Display last logins.
$ lslogins --last
try on your machine

The command "lslogins --last" is used to list information about user logins, particularly focusing on the date and time of their last login.

When executed, the "lslogins" command displays various details about user accounts stored in the system's login database. The "--last" option is added to specify that only information related to the last login should be shown.

By using this command, you can get an overview of the last login activity for each user on the system. The information may include the user's username, terminal used for login, the IP address from which the login occurred, the date, and the time of the last login.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lslogins tool