lastlog
Show the most recent login of all users or of a given user. More information: https://manned.org/lastlog.
- Display the most recent login of all users:
lastlog
- 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}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.