- 论坛徽章:
- 2
|
今天学了一个新命令:getent (getentry)以前从没见过。估计在学LINUX NETWORKING 时可以碰上。 getent --help 可以SHOW出很多有用的DATABASE。
Supported databases:
ahosts ahostsv4 ahostsv6 aliases ethers group gshadow hosts netgroup
networks passwd protocols rpc services shadow
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 getent is a common way to look up user details on Unix. Since getent uses the same name service as the system, getent will show all information, including that gained from network information sources such as LDAP.
|
|