dircolors(1)

dircolors1

Color setup for ls

Usage

dircolors [OPTION] ... [FILE]

Overview

Output commands to set the LS_COLORS environment variable.

Determine format of output:

-b, --sh, --bourne-shell

output Bourne shell code to set LS_COLORS

-c, --csh, --c-shell

output C shell code to set LS_COLORS

-p, --print-database

output defaults

--print-ls-colors

output fully escaped colors for display

--help

display this help and exit

--version

output version information and exit

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'.

Releases

19 releases since Debian 1.1 (Buzz); the text changed 15 times.

  1. 1.1
  2. 1.2–2.1
  3. 2.2
  4. 3.0
  5. 3.1
  6. 4.0
  7. 5.0
  8. 6.0
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. Arch

--bourne-shell since Debian 2.2 (Potato); --c-shell since Debian 2.2 (Potato); --csh since Debian 2.2 (Potato); --help since Debian 2.2 (Potato); --print-database since Debian 2.2 (Potato); --print-ls-colors since Debian 12 (Bookworm); --sh since Debian 2.2 (Potato); --version since Debian 2.2 (Potato); -b since Debian 2.2 (Potato); -c since Debian 2.2 (Potato); -p since Debian 2.2 (Potato).

-P until Debian 1.1 (Buzz); -S until Debian 1.1 (Buzz); -a until Debian 1.1 (Buzz); -k until Debian 1.1 (Buzz); -s until Debian 1.1 (Buzz); -t until Debian 1.1 (Buzz); -v until Debian 1.1 (Buzz); -z until Debian 1.1 (Buzz).

Author

Written by H. Peter Anvin.

Reporting bugs

Report bugs to: <[email protected]>.
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/>

From coreutils 9.12-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.