How to check old login history with last command

To see login history on a Linux system, you can use the “last” command.

last command

-n 10 limit result to last 10 logins.

Login history is stored in the file

This file can grow and get rotated over time. If the file gets rotated, when you use the “last” command, it won’t report login history from older files.

To see login history from an older file, you can use the command

You can also use the command

See last

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.