Create and remove Unix groups from the shell to shape access and permission boundaries. 15.11.2025 | reading time: 2 min Take control of access by creating and removing groups at the command line with `groupadd` and `groupdel`; simple commands, tangible effects. Create and remove a group Do this now: run `sudo groupadd devteam` then check with `getent group devteam` which will show `devteam:x:1002:`; remove the group with `sudo groupdel devteam` and verify absence with `getent group devteam` which should return no result. Important options and caveats Use `groupadd -g 1002 name` to set a specific GID, `-r` to create a system group where supported and `-f` to avoid errors for existing groups; never delete a group that is still a user\'s primary group because the user will be left with a numeric GID and permission issues may follow. Other tools to combine Pair group management with `getent` to query the database, `groupmod` to rename or change GIDs, `gpasswd` to manage group administrators and with `usermod` to adjust user group membership. Where to go next Practice creating groups, assign members, then remove them safely and document changes; to deepen skills consider certifications like CompTIA Linux+ or LPIC-1 and intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities security setup