The Green Manalishi (With the Two-Prong Crown)

Posted on 9th May 2009

For quite sometime now, I like others I've seen on various forums, have got really irritated with one aspect of the colour scheme used on Linux when doing a directory listing. If you have the colour scheme enabled and haven't changed any settings, then likely as not, if you have any directory that is world writeable, then you probably won't be able to read the text.

When designing websites, it is common practice to use high contrast colours, as you want the site to be readable, and not cause headaches among your readers as they try to understand what you've written. Recently I was investigating some high contrasting colours, and found some good websites that explain what I mean.

With this in mind, why on earth would anyone think that blue text on a dark green background would be easily readable. Unless you get close to the screen and squint!

On Linux systems there is a application called 'dircolors' and if you're lucky enough on RedHat based systems, you even have the '/etc/DIR_COLORS' configuration file, so it is possible to try and figure out what needs to be changed. However, until now I've never manaed to find the offending attribute to change. After a lot of searching this morning, I finally found a site that explains all the short form and long form keys, and additional colours that can be used in the colour scheme, beyond the 8 foreground and 8 background colours. Even better it even explains the effects available. In most places only bold is mentioned.

So in the event anyone else has had the same problem with their directories disappearing before their eyes, take a look at Configuring LS_COLORS by David Newcomb. It turns out the offending key is OTHER_WRITABLE (or ow in LS_COLORS format). I've now set mine to something much more sensible (bold white on a blue background), and it's much much easier on the eyes :)


No Comments

Add A Comment

Ignore this:
Your Name *
Subject *
Comment *

Some Rights Reserved Unless otherwise expressly stated, all original material of whatever nature created by Barbie and included in the Memories Of A Roadie website and any related pages, including the website's archives, is licensed under a Creative Commons by Attribution Non-Commercial License. If you wish to use material for commercial puposes, please contact me for further assistance regarding commercial licensing.