Group Administration (groupadd & groups)
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.
developers by running sudo groupadd developers. Then, check your own active groups by running the groups command.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
sudo groupadd developers | Create a new group named developers |
groups | Display 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.