snippetbashTip
lastlog — Show the most recent login of all users or of a user. More information: <https://manned.org/lastlog>
Viewed 0 times
thecommandlastlogloginshowmostclirecent
linux
Problem
How to use the
lastlog command: Show the most recent login of all users or of a user. More information: <https://manned.org/lastlog>.Solution
lastlog — Show the most recent login of all users or of a user. More information: <https://manned.org/lastlog>.Display the most recent login of all users:
lastlogDisplay the lastlog record of the specified user:
lastlog --user {{username}}Display records older than 7 days:
lastlog --before 7Display records more recent than 3 days:
lastlog --time 3Code Snippets
Display the most recent login of all users
lastlogDisplay the lastlog record of the specified user
lastlog --user {{username}}Display records older than 7 days
lastlog --before 7Display records more recent than 3 days
lastlog --time 3Context
tldr-pages: linux/lastlog
Revisions (0)
No revisions yet.