Which command shows all user accounts that are currently available to the Linux operating system, regardless of their source?

Prepare for the LPIC3 300 Mixed Environment Exam with quiz questions and detailed explanations. Sharpen your skills and ensure success!

The command that shows all user accounts currently available to the Linux operating system, regardless of their source, is getent. This command interacts with the Name Service Switch (NSS) configuration to retrieve entries from databases such as passwd, group, hosts, and services, allowing it to display user accounts from various sources, including local files (like /etc/passwd), NIS, LDAP, and more.

getent is particularly useful because it consolidates information from multiple identity management systems, making it an effective tool for administrators dealing with mixed environments where user accounts may exist across different sources. By using getent passwd, you get a comprehensive list of all user accounts accessible to the system, regardless of where they are stored.

The other options do not provide the same breadth of information. For instance, ypcat generally interacts with NIS to display maps, but it may not cover local users or other directory services. The wbinfo command is primarily used to query information from a Winbind daemon and typically focuses on Windows domain users rather than providing a complete list from all sources. Meanwhile, showuser is not a standard command used for this purpose in Linux. Thus, getent is the most suitable option for this requirement.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy