commands.sh

getent

linux

Get entries from Name Service Switch libraries.

More info →

Examples (5)

Get list of all groups

getent group

See the members of a group

getent group group_name

Get list of all services

getent services

Find a username by UID

Perform a reverse DNS lookup

getent hosts host
made by @shridhargupta | data from tldr-pages