encyclopegia.org

Getent

getent is a Unix command that helps a user get entries in a number of important text files called databases. This includes the passwd and group databases which store user information – hence is a common way to look up user details on Unix. Since uses the same name service as the system, will show all information, including that gained from network information sources such as LDAP. The databases it searches in are: ahosts, ahostsv4, ahostsv6, aliases, ethers (Ethernet addresses), group, gshadow, hosts, netgroup, networks, passwd, protocols, rpc, services, and shadow. The general syntax is: getent database [key ...] Thorsten Kukuk wrote the getent utility for the GNU C Library.

getent is a Unix command that helps a user get entries in a number of important text files called databases. This includes the passwd and group databases which store user information – hence is a common way to look up user details on Unix. Since uses the same name service as the system, will show all information, including that gained from network information sources such as LDAP. The databases it searches in are: ahosts, ahostsv4, ahostsv6, aliases, ethers (Ethernet addresses), group, gshadow, hosts, netgroup, networks, passwd, protocols, rpc, services, and shadow. The general syntax is: getent database [key ...] Thorsten Kukuk wrote the getent utility for the GNU C Library. $ getent passwd root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/bin/sh man:x:6:12:man:/var/cache/man:/bin/sh lp:x:7:7:lp:/var/spool/lpd:/bin/sh mail:x:8:8:mail:/var/mail:/bin/sh Fetch details for a particular user called joe: $ getent passwd joe joe:x:1000:1000:Joe,,,:/home/joe:/bin/bash Fetch list of group accounts on a Unix system (stored in a database called 'group'): $ getent group root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:stefan tty:x:5: disk:x:6: lp:x:7: mail:x:8: ==External links== The getent manpage

References

No reference rows published for this article.

Cite this article

MLA

"Getent." encyclopegia.org, 2026, https://encyclopegia.org/wiki/getent. Accessed 24 November 2026.

Chicago

"Getent." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/getent.

APA

encyclopegia.org. (2026). Getent. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/getent

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Tigest Getent

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1353625304 · 0.5 · snapshot enwiki-001353625304

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.