Table of Contents


dircolors - color setup for ls


dircolors [OPTION]... [FILE]


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

--help display this help and exit

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


Written by H. Peter Anvin.

Reporting Bugs

Report bugs to <>.


Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <>. There is NO WARRANTY, to the extent permitted by law.

See Also

The full documentation for dircolors is maintained as a Texinfo manual. If the info and dircolors programs are properly installed at your site, the command

info dircolors

should give you access to the complete manual.

Table of Contents

Privacy Policy