{
    "content": [
        {
            "type": "text",
            "text": "# id(1) (man)\n\n## TLDR\n\n> Display current user and group identity.\n\n- Display current user's ID (UID), group ID (GID), and groups to which they belong:\n  `id`\n- Display the current user identity:\n  `id {{-un|--user --name}}`\n- Display the current user identity as a number:\n  `id {{-u|--user}}`\n- Display the current primary group identity:\n  `id {{-gn|--group --name}}`\n- Display the current primary group identity as a number:\n  `id {{-g|--group}}`\n- Display all groups the current user belongs to:\n  `id {{-Gn|--groups --name}}`\n- Display an arbitrary user's ID (UID), group ID (GID), and groups to which they belong:\n  `id {{username}}`\n- Skip name lookup and specify the UID number explicitly:\n  `id +{{uid_number}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** id - print real and effective user and group IDs\n\n**Synopsis:** id [OPTION]... [USER]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -a | — | — |  |\n| -Z | --context | — | print only the security context of the process |\n| -g | --group | — | print only the effective group ID |\n| -G | --groups | — | print all group IDs |\n| -n | --name | — | print a name instead of a number, for -ugG |\n| -r | --real | — | print the real ID instead of the effective ID, with -ugG |\n| -u | --user | — | print only the effective user ID |\n| -z | --zero | — | delimit entries with NUL characters, not whitespace; not permitted in default format --help display this help and exit |\n| — | --version | — | output version information and exit Without any OPTION, print some useful set of identified information. |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines) — 9 subsections\n  - -a (1 lines)\n  - -Z --context (2 lines)\n  - -g --group (2 lines)\n  - -G --groups (2 lines)\n  - -n --name (2 lines)\n  - -r --real (2 lines)\n  - -u --user (2 lines)\n  - -z --zero (6 lines)\n  - --version (4 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nid - print real and effective user and group IDs\n\n### SYNOPSIS\n\nid [OPTION]... [USER]...\n\n### DESCRIPTION\n\nPrint user and group information for each specified USER, or (when USER omitted) for the cur‐\nrent user.\n\n#### -a\n\n#### -Z --context\n\nprint only the security context of the process\n\n#### -g --group\n\nprint only the effective group ID\n\n#### -G --groups\n\nprint all group IDs\n\n#### -n --name\n\nprint a name instead of a number, for -ugG\n\n#### -r --real\n\nprint the real ID instead of the effective ID, with -ugG\n\n#### -u --user\n\nprint only the effective user ID\n\n#### -z --zero\n\ndelimit entries with NUL characters, not whitespace;\n\nnot permitted in default format\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\nWithout any OPTION, print some useful set of identified information.\n\n### AUTHOR\n\nWritten by Arnold Robbins and David MacKenzie.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n\n### SEE ALSO\n\nFull documentation <https://www.gnu.org/software/coreutils/id>\nor available locally via: info '(coreutils) id invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                       ID(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "id",
        "section": "1",
        "mode": "man",
        "summary": "id - print real and effective user and group IDs",
        "synopsis": "id [OPTION]... [USER]...",
        "tldr_summary": "Display current user and group identity.",
        "tldr_examples": [
            {
                "description": "Display current user's ID (UID), group ID (GID), and groups to which they belong",
                "command": "id"
            },
            {
                "description": "Display the current user identity",
                "command": "id {{-un|--user --name}}"
            },
            {
                "description": "Display the current user identity as a number",
                "command": "id {{-u|--user}}"
            },
            {
                "description": "Display the current primary group identity",
                "command": "id {{-gn|--group --name}}"
            },
            {
                "description": "Display the current primary group identity as a number",
                "command": "id {{-g|--group}}"
            },
            {
                "description": "Display all groups the current user belongs to",
                "command": "id {{-Gn|--groups --name}}"
            },
            {
                "description": "Display an arbitrary user's ID (UID), group ID (GID), and groups to which they belong",
                "command": "id {{username}}"
            },
            {
                "description": "Skip name lookup and specify the UID number explicitly",
                "command": "id +{{uid_number}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-a",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-Z",
                "long": "--context",
                "arg": null,
                "description": "print only the security context of the process"
            },
            {
                "flag": "-g",
                "long": "--group",
                "arg": null,
                "description": "print only the effective group ID"
            },
            {
                "flag": "-G",
                "long": "--groups",
                "arg": null,
                "description": "print all group IDs"
            },
            {
                "flag": "-n",
                "long": "--name",
                "arg": null,
                "description": "print a name instead of a number, for -ugG"
            },
            {
                "flag": "-r",
                "long": "--real",
                "arg": null,
                "description": "print the real ID instead of the effective ID, with -ugG"
            },
            {
                "flag": "-u",
                "long": "--user",
                "arg": null,
                "description": "print only the effective user ID"
            },
            {
                "flag": "-z",
                "long": "--zero",
                "arg": null,
                "description": "delimit entries with NUL characters, not whitespace; not permitted in default format --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit Without any OPTION, print some useful set of identified information."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "-a",
                        "lines": 1,
                        "flag": "-a"
                    },
                    {
                        "name": "-Z --context",
                        "lines": 2,
                        "flag": "-Z",
                        "long": "--context"
                    },
                    {
                        "name": "-g --group",
                        "lines": 2,
                        "flag": "-g",
                        "long": "--group"
                    },
                    {
                        "name": "-G --groups",
                        "lines": 2,
                        "flag": "-G",
                        "long": "--groups"
                    },
                    {
                        "name": "-n --name",
                        "lines": 2,
                        "flag": "-n",
                        "long": "--name"
                    },
                    {
                        "name": "-r --real",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--real"
                    },
                    {
                        "name": "-u --user",
                        "lines": 2,
                        "flag": "-u",
                        "long": "--user"
                    },
                    {
                        "name": "-z --zero",
                        "lines": 6,
                        "flag": "-z",
                        "long": "--zero"
                    },
                    {
                        "name": "--version",
                        "lines": 4,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}