Forrest logo
back to the last tool

last:tldr:d2b99

last: View all logins by a specific user and show the IP address instead of the hostname.
$ last ${username} -i
try on your machine

The command "last ${username} -i" is used to display the login history of a specific user, indicated by ${username}.

Here is a breakdown of the command:

  • "last" is a command in Unix-like operating systems that retrieves information about previous logins.
  • "${username}" is a placeholder for the actual username of the user whose login history you want to view. Replace this with the desired username.
  • "-i" is an option or flag that specifies that the command should display the IP addresses associated with the login history.

Putting it all together, when you execute the "last ${username} -i" command, it will print a list of the user's previous logins, along with the date, time, and IP address from which each login originated.

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 last tool