2017-12-19 15:26:37 +00:00
|
|
|
# lastlog
|
|
|
|
|
|
|
|
> Show the most recent login of all users or of a given user.
|
2021-08-16 11:34:01 +01:00
|
|
|
> More information: <https://manned.org/lastlog>.
|
2017-12-19 15:26:37 +00:00
|
|
|
|
|
|
|
- Display the most recent login of all users:
|
|
|
|
|
|
|
|
`lastlog`
|
|
|
|
|
|
|
|
- Display lastlog record of the specified user:
|
|
|
|
|
|
|
|
`lastlog -u {{username}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Display records before 7 days ago:
|
2017-12-19 15:26:37 +00:00
|
|
|
|
|
|
|
`lastlog -b {{7}}`
|
|
|
|
|
|
|
|
- Display records more recent than 3 days:
|
|
|
|
|
|
|
|
`lastlog -t {{3}}`
|