Which files provide information in the output for a user named 'bob'?

Prepare for the LPI Linux Essentials 010-160 Test. Study with flashcards and multiple choice questions, each question offers hints and explanations. Get ready to ace your exam!

The file that provides information specifically for a user named 'bob' is the /etc/passwd file. This file contains essential user account information, including the username, user ID (UID), group ID (GID), home directory, login shell, and other details about user accounts on the system. When querying for user-specific information, the /etc/passwd file is the primary source, making it crucial for identifying user attributes like username and associated settings.

While other files like /etc/shadow are important for storing user password information securely, and /etc/group contains group membership details, they do not provide the comprehensive account information that /etc/passwd does. The /etc/shells file, on the other hand, lists valid login shells but does not pertain specifically to user account details. Therefore, when looking for user-related information such as that of 'bob', /etc/passwd is the correct file to reference.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy