tldr/pages/linux/lastlog.md
2017-12-19 20:56:37 +05:30

330 B

lastlog

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

  • Display the most recent login of all users:

lastlog

  • Display lastlog record of the specified user:

lastlog -u {{username}}

  • Display records before than 7 days:

lastlog -b {{7}}

  • Display records more recent than 3 days:

lastlog -t {{3}}