Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Getent
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{lowercase|getent}} {{short description|Unix command}} '''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 {{code|getent}} is a common way to look up user details on Unix. Since {{code|getent}} uses the same name service as the system, {{code|getent}} will show all information, including that gained from network information sources such as [[Lightweight Directory Access Protocol|LDAP]]. The databases it searches in are: ahosts, ahostsv4, ahostsv6, aliases, ethers (Ethernet addresses), group, gshadow, hosts, netgroup, networks, [[passwd (file)|passwd]], protocols, rpc, services, and shadow. The general syntax is: <syntaxhighlight lang="shell"> getent database [key ...] </syntaxhighlight> [[Thorsten Kukuk]] wrote the ''getent'' utility for the [[GNU C Library]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)