Command
id
Explanation
id displays the user and group IDs of the current or specified user.
Examples
Show current user IDs
id
Show specific user IDs
id username
Show primary group ID only
id -g
id
id displays the user and group IDs of the current or specified user.
Show current user IDs
id
Show specific user IDs
id username
Show primary group ID only
id -g