LPI
010-160 · Question #66
010-160 Question #66: Real Exam Question with Answer & Explanation
The correct answer is D: id. The 'id' command displays the current user's UID, primary GID, and all supplementary group memberships. It is the standard tool for listing group membership on Linux.
Security and File Permissions
Question
Which command display the list of groups to which a user belongs?
Options
- Awhoami
- Blsgroup
- Cwho
- Did
Explanation
The 'id' command displays the current user's UID, primary GID, and all supplementary group memberships. It is the standard tool for listing group membership on Linux.
Common mistakes.
- A. 'whoami' only prints the effective username of the current user and provides no group membership information.
- B. 'lsgroup' is not a standard Linux command and does not exist on typical Linux distributions.
- C. 'who' shows which users are currently logged into the system, not the group memberships of a specific user.
Concept tested. Linux id command user and group identity
Topics
#id command#user groups#user identity
Community Discussion
No community discussion yet for this question.