dircolors - color setup for ls
| Use Case | Command | Description |
|---|---|---|
| Output Bourne shell code | dircolors -b | đ Sets LS_COLORS for sh/bash |
| Output C shell code | dircolors -c | đ Sets LS_COLORS for csh/tcsh |
| Print default database | dircolors -p | đ Show built-in color scheme |
| Use custom FILE | dircolors FILE | đ Read colors from a file |
dircolors [OPTION]... [FILE]
Output commands to set the LS_COLORS environment variable.
If FILE is specified, read it to determine which colors to use for which file types and extensions. Otherwise, a precompiled database is used. For details on the format of these files, run dircolors --print-database.
Written by H. Peter Anvin.
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Copyright Š 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Full documentation <https://www.gnu.org/software/coreutils/dircolors>
or available locally via: info '(coreutils) dircolors invocation'
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-27 15:46 @216.73.216.67
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)