---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lastb

> List last logged in users.
> More information: <https://manned.org/lastb>.

- List last logged in users:

`sudo lastb`

- List all last logged in users since a given time:

`sudo lastb {{[-s|--since]}} {{YYYY-MM-DD}}`

- List all last logged in users until a given time:

`sudo lastb {{[-t|--until]}} {{YYYY-MM-DD}}`

- List all logged in users at a specific time:

`sudo lastb {{[-p|--present]}} {{hh:mm}}`

- List all last logged in users and translate the IP into a hostname:

`sudo lastb {{[-d|--dns]}}`
