Bird
0
0

What is the output of the command groups alice if Alice belongs to groups users and developers?

medium📝 Command Output Q13 of 15
Linux CLI - Users and Groups
What is the output of the command groups alice if Alice belongs to groups users and developers?
Agroups: alice users developers
Busers developers
Calice : users developers
Dalice users, developers
Step-by-Step Solution
Solution:
  1. Step 1: Understand the groups command output format

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

    The correct output is "alice : users developers" with a space after the colon and groups separated by spaces.
  3. Final Answer:

    alice : users developers -> Option C
  4. Quick Check:

    groups username = username : groups [OK]
Quick Trick: groups username shows username : group1 group2 [OK]
Common Mistakes:
  • Omitting the username in output
  • Using commas instead of spaces
  • Adding extra words like 'groups:'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes