Users

The groupadd command

Creates a new group in the system.

Syntax

sudo groupadd [-g GID] grupo

Most useful options

-g GIDSets the group's numeric id

Copy-ready examples

$ sudo groupadd equipo && getent group equipoCreate a group and check it

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • It needs sudo. If the group already exists it errors.

Related commands

FAQ

What is a group?

A set of users that share permissions on files.

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course