{
    "mode": "man",
    "parameter": "dircolors",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dircolors/1/json",
    "generated": "2026-05-30T06:07:08Z",
    "synopsis": "dircolors [OPTION]... [FILE]",
    "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": []
        }
    },
    "summary": "dircolors - color setup for ls",
    "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": []
}