Which command displays the current user's numeric user ID and group ID?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that displays the current user's numeric user ID (UID) and group ID (GID) is the 'id' command. When you run 'id' in a terminal, it returns information such as the user's UID, the GID of the user's main group, and any groups of which the user is a member. This information is presented in both numeric and named formats, making it a versatile tool for checking user account details.

The other options are not designed for this purpose. The 'info' command is used to display a documentation system and help information about commands rather than user IDs. The 'userenc' command is not a standard Linux command and does not relate to user ID management. The 'uid' command does not exist as a standalone command in Linux; instead, it's a concept referring to the user ID itself. Thus, the 'id' command is the correct choice for retrieving the numeric identifiers of the current user.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy