$
Learn Linux handbook
en
XP:0
Quest 136Group-Master
+220 XP

Group Administration (groupadd & groups)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

In Linux, users are organized into groups to share permissions easily. For example, all developers might belong to a group named developers. This allows us to share files with the entire team at once.

- The groupadd command creates a new group. Since this is a system configuration, it requires superuser privileges (e.g. sudo groupadd developers).
- The groups [username] command lists all the groups a user belongs to. Run without arguments, it displays groups for the current user.

Let's manage groups. Create a new group named developers by running sudo groupadd developers. Then, check your own active groups by running the groups command.

Command Syntax Reference

Command / SyntaxDescription
sudo groupadd developersCreate a new group named developers
groupsDisplay active groups for current user

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Create group "developers" using groupadd
  • ○
    Run the "groups" command

Ready to complete Quest 136?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.