1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/getent.md

24 lines
320 B
Markdown
Raw Normal View History

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