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