Bird
0
0

What will be the output of getent group developers if the developers group exists with GID 1002 and members alice and bob?

medium📝 Command Output Q5 of 15
Linux CLI - Users and Groups
What will be the output of getent group developers if the developers group exists with GID 1002 and members alice and bob?
Adevelopers:x:1002:alice,bob
Bdevelopers:1002:alice,bob
Cdevelopers:x:alice,bob:1002
Ddevelopers:x:1002
Step-by-Step Solution
Solution:
  1. Step 1: Understand getent group output format

    The format is groupname:x:GID:members.
  2. Step 2: Apply to developers group

    For developers with GID 1002 and members alice,bob, output is developers:x:1002:alice,bob.
  3. Final Answer:

    developers:x:1002:alice,bob -> Option A
  4. Quick Check:

    getent group = groupname:x:GID:members [OK]
Quick Trick: getent group shows group info with 'x' placeholder for password [OK]
Common Mistakes:
  • Omitting the 'x' field
  • Swapping GID and members fields
  • Listing members without commas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes