GO KALI FREE
User Management

groups Linux Command

Displays all groups the current user is a member of.

What does groups do?

Displays all groups the current user is a member of.

Syntax

groups [username]

Practical example

groups kali

Related User Management

groupdel

Deletes an existing group from the system.

last

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

groupadd

Creates a new group on the system.

whoami

Displays the username of the currently logged-in user.

userdel

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

who

Shows all users currently logged into the system with login details.