DIRCOLORS(1)
๐ DIRCOLORS(1) โ bestie edition โจ
okay so this is dircolors, from the User Commands girlies (section 1 of the manual, iykyk). she's the one who tells ls what colors to wear. yes, that's literally her whole job and she ATE. ๐
๐ NAME ๐
dircolors โ color setup for ls ๐
like. she sets up the colors. for ls. that's the vibe. slay.
๐ฆ SYNOPSIS ๐ฆ
dircolors [OPTION]... [FILE]
that's it. options, then maybe a file if you're feeling main character energy. ๐ซถ
โจ DESCRIPTION โจ
so basically dircolors spits out commands โ like, actual shell commands โ that set the LS_COLORS environment variable. that's the whole point. she doesn't set the colors herself, she gives you the receipts so you can set them. no cap. ๐
๐ Determine format of output: ๐
okay so you gotta tell her what shell you're in, bestie. she can't read your mind (rude, ik).
-b,--sh,--bourne-shellโ outputs Bourne shell code to setLS_COLORS. if you're abash/sh/zshgirlie, this is your moment. ๐-c,--csh,--c-shellโ outputs C shell code to setLS_COLORS. for thecsh/tcshgirlies, we see you, we love you. ๐-p,--print-databaseโ outputs the defaults. like, what colors she'd pick if you gave her zero input. the factory setting. the og. ๐ธ--print-ls-colorsโ outputs fully escaped colors for display. escaped. fully. so your terminal doesn't get confused and start tweaking. ๐ญ--helpโ displays this help and exits. the "wait what does this do again" button. ๐--versionโ outputs version information and exits. for when you need to know exactly which girl you're talking to. โญ
ngl this next part matters: if a FILE is specified, she reads it to figure out which colors go with which file types and extensions. otherwise, a precompiled database is used instead. so like, no file? no problem, she's got one on deck. ๐ฆ
and if you're curious about the format of these files โ like, the actual syntax, the lore โ you run:
dircolors --print-database
fr fr, that's how you learn the format. she literally tells you. iconic behavior. ๐
๐ AUTHOR ๐
Written by H. Peter Anvin. king shit. ๐โจ
๐ REPORTING BUGS ๐
found a bug? not the vibe, but okay, let's handle it:
- Report bugs to:
<bug-coreutils@gnu.org>. - Report any translation bugs to:
<https://translationproject.org/team/>. - GNU coreutils home page:
<https://www.gnu.org/software/coreutils/> - General help using GNU software:
<https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 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. like, zero. none. don't come for her. ๐ญ
๐ SEE ALSO ๐
- Full documentation
<https://www.gnu.org/software/coreutils/dircolors> - or available locally via:
info '(coreutils) dircolors invocation'
and that's the whole page bestie ๐ซถ this was GNU coreutils 9.12, dated September 2026 โ go forth and make your terminal pretty. periodt. ๐ โจ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms