tldr/pages/linux/lastb.md

25 lines
483 B
Markdown
Raw Normal View History

2019-01-28 18:38:12 +00:00
# lastb
> List last logged in users.
> More information: <https://manned.org/lastb>.
2019-01-28 18:38:12 +00:00
- List last logged in users:
2019-01-28 18:38:12 +00:00
`sudo lastb`
- List all last logged in users since a given time:
2019-01-28 18:38:12 +00:00
`sudo lastb --since {{YYYY-MM-DD}}`
- List all last logged in users until a given time:
2019-01-28 18:38:12 +00:00
`sudo lastb --until {{YYYY-MM-DD}}`
- List all logged in users at a specific time:
2019-01-28 18:38:12 +00:00
`sudo lastb --present {{hh:mm}}`
- List all last logged in users and translate the IP into a hostname:
2019-01-28 18:38:12 +00:00
`sudo lastb --dns`