gid


Get a User’s User ID (UID), main Group ID (GID) and Supplementary Groups – See if user exists

You can get a User’s User ID (UID), main Group ID (GID) and Supplementary Groups  using the id command.

id useraccount