Linux
-
Get information of the
staffgroup.$ getent group staff staff:x:20: -
Get group ID of the
staffgroup.$ getent group staff | cut -d: -f3 20
Mac
-
Get information of the
staffgroup.$ dscl . -read /Groups/staff -
Get group ID of the
staffgroup.$ dscl . -read /Groups/staff | awk …