Is there a whoami to find the current group I'm logged in as?
I figured I can use the following.
id -g
To get all the groups I belong
id -G
And to get the actual names, instead of the ids, just pass the flag -n
.
id -Gn
This last command will yield the same result as executing
groups
To get group name needed one more flag:
id -g -n