2017-12-19 15:26:37 +00:00
|
|
|
# lastlog
|
|
|
|
|
2024-02-14 20:25:13 +00:00
|
|
|
> Show the most recent login of all users or of a 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`
|
|
|
|
|
2021-10-21 21:43:38 +01:00
|
|
|
- Display the lastlog record of the specified user:
|
2017-12-19 15:26:37 +00:00
|
|
|
|
2021-10-21 21:43:38 +01:00
|
|
|
`lastlog --user {{username}}`
|
2017-12-19 15:26:37 +00:00
|
|
|
|
2021-10-21 21:43:38 +01:00
|
|
|
- Display records older than 7 days:
|
2017-12-19 15:26:37 +00:00
|
|
|
|
2023-12-30 16:04:15 +00:00
|
|
|
`lastlog --before 7`
|
2017-12-19 15:26:37 +00:00
|
|
|
|
|
|
|
- Display records more recent than 3 days:
|
|
|
|
|
2023-12-30 16:04:15 +00:00
|
|
|
`lastlog --time 3`
|