id [Command]
|Command id
id – command displays the user ID, group ID and user groups.
Syntax
id [options] [username]
Options
-g prints only the group ID.
-n displays the name of the group, rather than group id.
-u prints only the user ID.
Description
id command displays the user ID, group ID, and all groups to specified user. If the username is not specified, id displays information about current user.