{
    "content": [
        {
            "type": "text",
            "text": "# dircolors (man)\n\n## NAME\n\ndircolors - color setup for ls\n\n## SYNOPSIS\n\ndircolors [OPTION]... [FILE]\n\n## DESCRIPTION\n\nOutput commands to set the LSCOLORS environment variable.\n\n## TLDR\n\n> Output commands to set the `$LS_COLOR` environment variable and style `ls`, `dir`, etc.\n\n- Output commands to set `$LS_COLOR` using default colors:\n  `dircolors`\n- Display each filetype with the color they would appear in `ls`:\n  `dircolors --print-ls-colors`\n- Output commands to set `$LS_COLOR` using colors from a file:\n  `dircolors {{path/to/file}}`\n- Output commands for Bourne shell:\n  `dircolors {{-b|--bourne-shell}}`\n- Output commands for C shell:\n  `dircolors {{-c|--c-shell}}`\n- View the default colors for file types and extensions:\n  `dircolors {{-p|--print-database}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (5 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": "dircolors",
        "section": "",
        "mode": "man",
        "summary": "dircolors - color setup for ls",
        "synopsis": "dircolors [OPTION]... [FILE]",
        "tldr_summary": "Output commands to set the `$LS_COLOR` environment variable and style `ls`, `dir`, etc.",
        "tldr_examples": [
            {
                "description": "Output commands to set `$LS_COLOR` using default colors",
                "command": "dircolors"
            },
            {
                "description": "Display each filetype with the color they would appear in `ls`",
                "command": "dircolors --print-ls-colors"
            },
            {
                "description": "Output commands to set `$LS_COLOR` using colors from a file",
                "command": "dircolors {{path/to/file}}"
            },
            {
                "description": "Output commands for Bourne shell",
                "command": "dircolors {{-b|--bourne-shell}}"
            },
            {
                "description": "Output commands for C shell",
                "command": "dircolors {{-c|--c-shell}}"
            },
            {
                "description": "View the default colors for file types and extensions",
                "command": "dircolors {{-p|--print-database}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-b",
                "long": "--bourne-shell",
                "arg": null,
                "description": "output Bourne shell code to set LSCOLORS"
            },
            {
                "flag": "-c",
                "long": "--c-shell",
                "arg": null,
                "description": "output C shell code to set LSCOLORS"
            },
            {
                "flag": "-p",
                "long": "--print-database",
                "arg": null,
                "description": "output defaults --help display this help and exit"
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit If FILE is specified, read it to determine which colors to use for which file types and ex‐ tensions. Otherwise, a precompiled database is used. For details on the format of these files, run 'dircolors --print-database'."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "Determine format of output:",
                        "lines": 1
                    },
                    {
                        "name": "-b --sh --bourne-shell",
                        "lines": 2,
                        "flag": "-b",
                        "long": "--bourne-shell"
                    },
                    {
                        "name": "-c --csh --c-shell",
                        "lines": 2,
                        "flag": "-c",
                        "long": "--c-shell"
                    },
                    {
                        "name": "-p --print-database",
                        "lines": 4,
                        "flag": "-p",
                        "long": "--print-database"
                    },
                    {
                        "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": "dircolors - color setup for ls\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "dircolors [OPTION]... [FILE]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Output commands to set the LSCOLORS environment variable.\n",
                "subsections": [
                    {
                        "name": "Determine format of output:",
                        "content": ""
                    },
                    {
                        "name": "-b --sh --bourne-shell",
                        "content": "output Bourne shell code to set LSCOLORS\n",
                        "flag": "-b",
                        "long": "--bourne-shell"
                    },
                    {
                        "name": "-c --csh --c-shell",
                        "content": "output C shell code to set LSCOLORS\n",
                        "flag": "-c",
                        "long": "--c-shell"
                    },
                    {
                        "name": "-p --print-database",
                        "content": "output defaults\n\n--help display this help and exit\n",
                        "flag": "-p",
                        "long": "--print-database"
                    },
                    {
                        "name": "--version",
                        "content": "output version information and exit\n\nIf  FILE  is specified, read it to determine which colors to use for which file types and ex‐\ntensions.  Otherwise, a precompiled database is used.  For details on  the  format  of  these\nfiles, run 'dircolors --print-database'.\n",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by H. Peter Anvin.\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/dircolors>\nor available locally via: info '(coreutils) dircolors invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                DIRCOLORS(1)",
                "subsections": []
            }
        }
    }
}