GO KALI FREE
User Management

groupadd Linux Command

Creates a new group on the system.

What does groupadd do?

Creates a new group on the system.

Syntax

groupadd groupname

Practical example

sudo groupadd developers

Related User Management

userdel

Deletes a user account. Use -r to also remove the home directory.

groupdel

Deletes an existing group from the system.

usermod

Modifies an existing user account (groups, shell, home directory, etc.).

groups

Displays all groups the current user is a member of.

useradd

Creates a new user account on the system.

last

Shows the last logged-in users from the system log file.