Bird
0
0

What will be the output of the command groups alice if 'alice' belongs to groups 'users' and 'admin'?

medium📝 Command Output Q4 of 15
Linux CLI - Users and Groups
What will be the output of the command groups alice if 'alice' belongs to groups 'users' and 'admin'?
Agroups: alice not found
Balice : users admin
Calice: users, admin
Dusers admin
Step-by-Step Solution
Solution:
  1. Step 1: Understand 'groups' command output

    The 'groups username' command shows the username followed by a colon and the list of groups.
  2. Step 2: Match output format

    The output format is 'username : group1 group2', so 'alice : users admin' is correct.
  3. Final Answer:

    alice : users admin -> Option B
  4. Quick Check:

    Groups command output = D [OK]
Quick Trick: Groups command shows username and groups separated by colon [OK]
Common Mistakes:
MISTAKES
  • Omitting username in output
  • Using commas instead of spaces
  • Assuming error message when user exists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes