Command
idExplanation
id displays the user and group IDs of the current or specified user.
Examples
Show current user IDs
idShow specific user IDs
id usernameShow primary group ID only
id -gidid displays the user and group IDs of the current or specified user.
Show current user IDs
idShow specific user IDs
id usernameShow primary group ID only
id -g