OS Manuals

/usr/bin/getent

POSIX XCU utilities included with the C library (excluding ldd)

From posix-libc-utils-bin-2.44 2.44-r15 (os), captured 2026-11-10 by running getent --help (exit 0). permalink

Usage: getent [OPTION...] database [key ...]
Get entries from administrative database.

  -A, --no-addrconfig        do not filter out unsupported IPv4/IPv6 addresses
                             (with ahosts*)
  -i, --no-idn               disable IDN encoding
  -s, --service=CONFIG       Service configuration to be used
  -v, --verbose              print getaddrinfo error details
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

Supported databases:
ahosts ahostsv4 ahostsv6 aliases ethers group gshadow hosts initgroups
netgroup networks passwd protocols rpc services shadow

For bug reporting instructions, please see:
<https://www.gnu.org/software/libc/bugs.html>.
Options (7)
OptionDescriptionSource
-A, --no-addrconfigdo not filter out unsupported IPv4/IPv6 addresses (with ahosts*)help
-i, --no-idndisable IDN encodinghelp
-s, --service CONFIGService configuration to be usedhelp
-v, --verboseprint getaddrinfo error detailshelp
-?, --helpGive this help listhelp
--usageGive a short usage messagehelp
-V, --versionPrint program versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.