Linux Essentials (010-160) — Question 12
Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)
Answer options
- A. /etc/id
- B. /etc/passwd
- C. /etc/group
- D. /home/index
- E. /var/db/users
Correct answer: B, C
Explanation
The correct answers are /etc/passwd and /etc/group because these files contain user account information and group affiliations respectively. The other options do not hold relevant information related to user IDs or group memberships.