$usergroups  –  Mapping of a user’s groups to group IDs

$usergroups maps the names of the current user’s groups to the group identifiers.

Examples

Print groups name to id mapping of current user
1
2
typeset usergroups
# only the first few are shown
Output:
1
usergroups=( [tty]=5 [log]=19 [docker]=964 [libvirt]=968 )
BashSupport Pro is a Zsh IDE with support for $usergroupstry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal