What databases does getent access?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 08 2025
095

The getent command can access several administrative databases, including:

  1. passwd: User account information.
  2. group: Group information.
  3. hosts: Hostname and IP address resolution.
  4. services: Network services and their corresponding port numbers.
  5. protocols: Network protocols and their associated numbers.
  6. networks: Network names and their corresponding addresses.
  7. aliases: Email aliases (if configured).

You can specify the database you want to access by using the appropriate keyword with the getent command. For example:

getent passwd
getent group
getent hosts

0 Comments

no data
Be the first to share your comment!