getent

From RaySoft

The getent program gathers entries from the specified administrative database using the specified search keys. Where database is one of aliases, ethers, group, hosts, netgroup, networks, passwd, protocols, rpc, services or shadow.[1]

Documentation

Syntax

getent DATABASE [KEY ...]

Examples

Test the databases for passwd
getent 'passwd'

References

  1. man 1 'getent'