To check the groups that the current user belongs to, you can use the following command in the terminal:
groups
This command will display a list of all groups associated with the currently logged-in user.
Alternatively, you can also use:
id
This command provides more detailed information, including the user ID (UID), group ID (GID), and all groups the user is a member of.
If you have any more questions, feel free to ask!
