mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
24 lines
323 B
Markdown
24 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}}`
|