Users
The groupadd command
Creates a new group in the system.
Syntax
sudo groupadd [-g GID] grupoMost useful options
-g GIDSets the group's numeric idCopy-ready examples
$ sudo groupadd equipo && getent group equipoCreate a group and check itYou 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.
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