In a terminal in Red Hat Enterprise Linux 5.x, running:
[$] Env
returns (among other things):
"LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33 . . ."
Most of the content in LS_COLORS
I find in the file:
/etc/DIR_COLORS
BUT the values "no=00:fi=00:di=01;34:ln=01;36:pi=40;33
etc.", I have no success finding, even after grepping through the system.
In what file(s) are these values defined?
Yes, I know I can set the content of LS_COLORS
to the values I please,
but what I wonder about is where the values above are defined.
I think what you are looking for can be found at
/etc/profile.d/colorls.sh
:The
LS_COLORS
variable is set by an evaluation of the output ofdircolors --sh "$COLORS" 2>/dev/null
, which in turn receives its values from/etc/DIR_COLORS
. So in other words, the values inLS_COLORS
are identical toDIR_COLORS
by default.You can prove this by comparing the output from
dircolors --sh "$COLORS"
:And
echo $LS_COLORS
:And there you have it.