{
    "content": [
        {
            "type": "text",
            "text": "# TTY (man)\n\n## NAME\n\ntty - print the file name of the terminal connected to standard input\n\n## SYNOPSIS\n\ntty [OPTION]...\n\n## DESCRIPTION\n\nPrint the file name of the terminal connected to standard input.\n\n## TLDR\n\n> Returns terminal name.\n\n- Print the file name of this terminal:\n  `tty`\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": "TTY",
        "section": "",
        "mode": "man",
        "summary": "tty - print the file name of the terminal connected to standard input",
        "synopsis": "tty [OPTION]...",
        "tldr_summary": "Returns terminal name.",
        "tldr_examples": [
            {
                "description": "Print the file name of this terminal",
                "command": "tty"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-s",
                "long": "--quiet",
                "arg": null,
                "description": "print nothing, only return an exit status --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-s --silent --quiet",
                        "lines": 4,
                        "flag": "-s",
                        "long": "--quiet"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "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": "tty - print the file name of the terminal connected to standard input\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "tty [OPTION]...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Print the file name of the terminal connected to standard input.\n",
                "subsections": [
                    {
                        "name": "-s --silent --quiet",
                        "content": "print nothing, only return an exit status\n\n--help display this help and exit\n",
                        "flag": "-s",
                        "long": "--quiet"
                    },
                    {
                        "name": "--version",
                        "content": "output version information and exit\n",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by David MacKenzie.\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/tty>\nor available locally via: info '(coreutils) tty invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                      TTY(1)",
                "subsections": []
            }
        }
    }
}