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