{
    "content": [
        {
            "type": "text",
            "text": "# PRINTENV (man)\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## 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## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PRINTENV",
        "section": "",
        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "printenv - print all or part of environment\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "printenv [OPTION]... [VARIABLE]...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Print  the  values  of  the  specified environment VARIABLE(s).  If no VARIABLE is specified,\nprint name and value pairs for them all.\n",
                "subsections": [
                    {
                        "name": "-0 --null",
                        "content": "end each output line with NUL, not newline\n\n--help display this help and exit\n",
                        "flag": "-0",
                        "long": "--null"
                    },
                    {
                        "name": "--version",
                        "content": "output 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",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by David MacKenzie and Richard Mlynarik.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright © 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",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Full 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)",
                "subsections": []
            }
        }
    }
}