Check if I belongs to dialout group (Linux command)

Tested on Linux Mint 21.2, to check if I belongs to any group, Linux command id and groups can be used.


id: Print user and group information for each specified USER, or (when USER omitted) for the current user.

id
id <user>

groups: Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups database has changed).

groups
groups <user>




Comments