Color setup for &qt;ls&qt;&qt;, outputs a sequence of shell commands to set up the terminal for color output from &qt;ls&qt;&qt; (and &qt;dir&qt;&qt;, etc.).


eval &qt;dircolors [options]… [file]&qt;
If FILE is specified, &qt;dircolors&qt;&qt; reads 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 &qt;dircolors –print-database&qt;&qt;.

The output is a shell command to set the &qt;LS_COLORS&qt;&qt; environment variable. You can specify the shell syntax to use on the command line, or &qt;dircolors&qt;&qt; will guess it from the value of the &qt;SHELL&qt;&qt; environment variable.


Output Bourne shell commands. This is the default if the &qt;SHELL&qt;&qt;
environment variable is set and does not end with &qt;csh&qt;&qt; or &qt;tcsh&qt;&qt;.

Output C shell commands. This is the default if &qt;SHELL&qt;&qt; ends with
&qt;csh&qt;&qt; or &qt;tcsh&qt;&qt;.

Print the (compiled-in) default color configuration database. This
output is itself a valid configuration file, and is fairly
descriptive of the possibilities.