tldr/pages/linux/getent.md

25 lines
369 B
Markdown
Raw Normal View History

# getent
2016-02-19 23:09:38 +00:00
> Get entries from Name Service Switch libraries.
> More information: <https://manned.org/getent>.
2016-02-19 23:09:38 +00:00
- Get list of all groups:
`getent group`
- See the members of a group:
2018-12-04 21:16:17 +00:00
`getent group {{group_name}}`
2016-02-19 23:09:38 +00:00
- Get list of all services:
`getent services`
- Find a username by UID:
`getent passwd 1000`
- Perform a reverse DNS lookup:
`getent hosts {{host}}`