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 kaliRelated User Management
groupdelDeletes an existing group from the system.
lastShows the last logged-in users from the system log file.
groupaddCreates a new group on the system.
whoamiDisplays the username of the currently logged-in user.
userdelDeletes a user account. Use -r to also remove the home directory.
whoShows all users currently logged into the system with login details.