tldr/pages/linux/getent.md

24 lines
323 B
Markdown
Raw Normal View History

2016-02-19 23:09:38 +00:00
# getent
> Get entries from Name Service Switch libraries.
- Get list of all groups:
`getent group`
- See the members of a group:
`getenet group {{group_name}}`
- Get list of all services:
`getent services`
- Find a username by UID:
`getent passwd 1000`
- Perform a reverse DNS lookup:
`getent hosts {{host}}`