Bird
0
0

Which command lists all groups available on a Linux system?

easy📝 Conceptual Q1 of 15
Linux CLI - Users and Groups
Which command lists all groups available on a Linux system?
Acat /etc/group
Bls /etc/groups
Cgroups
Dgroupadd -l
Step-by-Step Solution
Solution:
  1. Step 1: Understand the file storing groups

    The file /etc/group contains all group information on Linux.
  2. Step 2: Use command to display file contents

    The cat /etc/group command shows all groups listed in that file.
  3. Final Answer:

    cat /etc/group -> Option A
  4. Quick Check:

    List groups = cat /etc/group [OK]
Quick Trick: Groups are stored in /etc/group file, use cat to view [OK]
Common Mistakes:
  • Using 'groups' without username lists current user's groups only
  • Trying to list a non-existent /etc/groups file
  • Using groupadd which is for creating groups, not listing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes