$usergroups
–
Mapping of a user’s groups to group IDs
$usergroups
maps the names of the current user’s groups to the group identifiers.
Links
Examples
- Print groups name to id mapping of current user
- Output:
1 2
typeset usergroups # only the first few are shown
1
usergroups=( [tty]=5 [log]=19 [docker]=964 [libvirt]=968 )
BashSupport Pro 是一款支持 usergroups** 的 **Zsh 集成开发环境 - 立即试用!