tldr/pages/linux/lastlog.md

21 lines
383 B
Markdown
Raw Normal View History

2017-12-19 15:26:37 +00:00
# lastlog
> Show the most recent login of all users or of a user.
> 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
`lastlog --before 7`
2017-12-19 15:26:37 +00:00
- Display records more recent than 3 days:
`lastlog --time 3`