GO KALI FREE
User Management

groupdel Linux Command

Deletes an existing group from the system.

What does groupdel do?

Deletes an existing group from the system.

Syntax

groupdel groupname

Practical example

sudo groupdel developers

Related User Management

groupadd

Creates a new group on the system.

groups

Displays all groups the current user is a member of.

userdel

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

last

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

usermod

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

whoami

Displays the username of the currently logged-in user.