{
    "content": [
        {
            "type": "text",
            "text": "# printenv(1) (man)\n\n## TLDR\n\n> Print values of environment variables.\n\n- Display key-value pairs of all environment variables:\n  `printenv`\n- Display the value of a specific variable:\n  `printenv {{HOME}}`\n- Display the value of a variable and end with NUL instead of newline:\n  `printenv {{-0|--null}} {{HOME}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** printenv - print all or part of environment\n\n**Synopsis:** printenv [OPTION]... [VARIABLE]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -0 | --null | — | end each output line with NUL, not newline --help display this help and exit |\n| — | --version | — | output version information and exit NOTE: your shell may have its own version of printenv, which usually supersedes the  |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines) — 2 subsections\n  - -0 --null (4 lines)\n  - --version (6 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\nprintenv - print all or part of environment\n\n### SYNOPSIS\n\nprintenv [OPTION]... [VARIABLE]...\n\n### DESCRIPTION\n\nPrint  the  values  of  the  specified environment VARIABLE(s).  If no VARIABLE is specified,\nprint name and value pairs for them all.\n\n#### -0 --null\n\nend each output line with NUL, not newline\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\nNOTE: your shell may have its own version of printenv, which usually supersedes  the  version\ndescribed  here.  Please refer to your shell's documentation for details about the options it\nsupports.\n\n### AUTHOR\n\nWritten by David MacKenzie and Richard Mlynarik.\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/printenv>\nor available locally via: info '(coreutils) printenv invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                 PRINTENV(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "printenv",
        "section": "1",
        "mode": "man",
        "summary": "printenv - print all or part of environment",
        "synopsis": "printenv [OPTION]... [VARIABLE]...",
        "tldr_summary": "Print values of environment variables.",
        "tldr_examples": [
            {
                "description": "Display key-value pairs of all environment variables",
                "command": "printenv"
            },
            {
                "description": "Display the value of a specific variable",
                "command": "printenv {{HOME}}"
            },
            {
                "description": "Display the value of a variable and end with NUL instead of newline",
                "command": "printenv {{-0|--null}} {{HOME}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-0",
                "long": "--null",
                "arg": null,
                "description": "end each output line with NUL, not newline --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit NOTE: your shell may have its own version of printenv, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "-0 --null",
                        "lines": 4,
                        "flag": "-0",
                        "long": "--null"
                    },
                    {
                        "name": "--version",
                        "lines": 6,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}