1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 19:22:08 +02:00
tldr/pages/linux/getent.md
2016-02-21 16:23:08 +02:00

23 lines
323 B
Markdown

# 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}}`