commands.sh

lastlog

linux

Show the most recent login of all users or of a user.

More info →

Examples (4)

Display the most recent login of all users

Display the lastlog record of the specified user

lastlog --user username

Display records older than 7 days

lastlog --before 7

Display records more recent than 3 days

lastlog --time 3
made by @shridhargupta | data from tldr-pages