$
Learn Linux handbook
en
XP:0
Quest 135Identifier
+150 XP

Viewing User Identities (id)

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

When troubleshooting permission errors, you must verify the exact user and group identifier context you are running under. We do this using id.

- Running id prints the current user's User ID (UID), primary Group ID (GID), and all supplementary group lists.
- Running id queries information for a specific user.

Let's check active identities. Run id to see your details, and then run id root to inspect the superuser's account identifiers.

Command Syntax Reference

Command / SyntaxDescription
idDisplay active user identification details
id rootQuery root identification details

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Run the "id" command for learner
  • ○
    Run the "id root" command

Ready to complete Quest 135?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.