Friday, July 5, 2013

When Did I Last Logout?

I sometimes wish to know when I last logged off my Linux laptop. This command lets me know my log in and log out history:

last | more

The last command is all about the last time you logged in. Since its output is in reverse chronological order, it helps to pipe it to the more command so that what you want to know does not run away on you by scrolling down the screen.

The last command is one of many commands that makes Linux so convenient once you learn how to use it.

Ed Abbott