To find out your group name (group membership) on a Linux system, you can use the id
command.
The id
command is a utility that displays user and group information for the current user.
To display group information for the current user, you can use the -ng
option with the id
command. For example:
id -ngSoucre:www.lautturi.com
This will display the group name (group membership) for the current user.
You can also use the groups
command to display the group names (group memberships) for the current user. For example:
groups
This will display a list of group names (group memberships) for the current user.
You can find more information about the id
and groups
commands and their options in the Linux documentation or by running the id --help
and groups --help
commands.
Keep in mind that a user can belong to multiple groups on a Linux system. The id
and groups
commands will display all the group memberships for the current user.