nerdexam
CompTIA

XK0-006 · Question #33

An administrator needs to verify the user ID, home directory, and assigned shell for the user named "accounting." Which of the following commands should the administrator use to retrieve this…

The correct answer is A. qetent passwd accounting. The getent passwd accounting command retrieves the user’s entry from the system’s password database, showing fields such as username, UID, GID, home directory, and assigned shell.

Services and User Management

Question

An administrator needs to verify the user ID, home directory, and assigned shell for the user named “accounting.” Which of the following commands should the administrator use to retrieve this information?

Options

  • Aqetent passwd accounting
  • Bid accounting
  • Cgrep accounting /etc/shadow
  • Dwho accounting

How the community answered

(49 responses)
  • A
    88% (43)
  • B
    4% (2)
  • C
    2% (1)
  • D
    6% (3)

Explanation

The getent passwd accounting command retrieves the user’s entry from the system’s password database, showing fields such as username, UID, GID, home directory, and assigned shell.

Topics

#getent#passwd database#user attributes#user management

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice