getent — Get Entries from Administrative Database

Synopsis

/bin/getent database [key...]

Description

Use the getent command to display a list of entries from the administrative database specified by database. The information generally comes from one or more of the sources that are specified for the database in /etc/nsswitch.conf.

database is the name of the database to be examined. The value can be passwd, group, hosts, services, protocols, ethers, networks, or netmasks. For each of these databases, getent uses the appropriate library routines described in getpwnam(3C), getgrnam(3C), gethostbyname(3N), getservbyname(3N), getprotobyname(3N), ethers(3N), and getnetbyname(3N).

Each key must be in a format appropriate for searching on the respective ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.