On 4/21/07, david <[EMAIL PROTECTED]> wrote:
Can anyone tell me where the color coding for the ls command in Ubuntu
is stored and defined? For example, I've got a directory with black
lettering and a green background, but only for
$ ls -l foo/
not for
$ ls foo/
Most of these codes are obvious, but this one has me baffled and I would
like to know where they are defined. (I suspect it has to do with being
world writeable).
The man page on my poor old SuSE 10.2 installation reads thus
_By default, color is not used to distinguish types of files. That is
equivalent to using --color=none. Using the --color option without the
optional WHEN argument is equivalent to using --color=always.
With --color=auto, color codes are output if standard output is
connected to a terminal (tty).
The environment variable LS_COLORS can influence the colors, and can
be set easily by the dircolors command.
So, at a guess, look at your environment <set | grep LS_COLORS> and
look for the two conditions you're having troubles with. Or run
dircolors --print-database | less to see how it's setup.
Of course, this assumes that Debian stuff does something similar to
poor old SuSE. :-)
DaZZa
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html