Bird
0
0

What does the command gpasswd -a user1 developers do?

easy📝 Conceptual Q2 of 15
Linux CLI - Users and Groups
What does the command gpasswd -a user1 developers do?
ALists members of the developers group
BDeletes user1 from the developers group
CAdds user1 to the developers group
DCreates a new group named developers
Step-by-Step Solution
Solution:
  1. Step 1: Understand gpasswd -a usage

    The -a option with gpasswd adds a user to a group.
  2. Step 2: Apply to given command

    gpasswd -a user1 developers adds user1 to the developers group.
  3. Final Answer:

    Adds user1 to the developers group -> Option C
  4. Quick Check:

    gpasswd -a = add user to group [OK]
Quick Trick: gpasswd -a adds user to group, -d removes user [OK]
Common Mistakes:
  • Confusing -a (add) with -d (delete)
  • Thinking it creates a group instead of modifying membership
  • Assuming it lists group members

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes