OS Manuals

/usr/bin/dircolors

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running dircolors --help (exit 0). permalink

Output commands to set the LS_COLORS environment variable.

Usage: dircolors [OPTION]... [FILE]

Options:
  -b, --sh               output Bourne shell code to set LS_COLORS [alias: --bourne-shell]
  -c, --csh              output C shell code to set LS_COLORS [alias: --c-shell]
  -p, --print-database   print the byte counts
      --print-ls-colors  output fully escaped colors for display
  -h, --help             Print help
  -V, --version          Print version

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'
Options (6)
OptionDescriptionSource
-b, --shoutput Bourne shell code to set LS_COLORS [alias: --bourne-shell]help + man
-c, --cshoutput C shell code to set LS_COLORS [alias: --c-shell]help + man
-p, --print-databaseprint the byte countshelp + man
--print-ls-colorsoutput fully escaped colors for displayhelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.