$GROUPS  –  Groups of Current User

$GROUPS is an array and contains the groups of which the current user is a member.

Examples

Print all groups of the current user
1
echo ${GROUPS[@]}
BashSupport Pro is a Bash IDE with support for $GROUPStry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal