1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/lastlog.md

21 lines
389 B
Markdown
Raw Normal View History

2017-12-19 23:26:37 +08:00
# lastlog
> Show the most recent login of all users or of a given user.
> More information: <https://manned.org/lastlog>.
2017-12-19 23:26:37 +08:00
- Display the most recent login of all users:
`lastlog`
2021-10-21 22:43:38 +02:00
- Display the lastlog record of the specified user:
2017-12-19 23:26:37 +08:00
2021-10-21 22:43:38 +02:00
`lastlog --user {{username}}`
2017-12-19 23:26:37 +08:00
2021-10-21 22:43:38 +02:00
- Display records older than 7 days:
2017-12-19 23:26:37 +08:00
`lastlog --before 7`
2017-12-19 23:26:37 +08:00
- Display records more recent than 3 days:
`lastlog --time 3`