On my console the color for directories is such a blue, that it is hard to read on a dark background.
How can I change the color definitions for
To change your directory colors, open up your
and make the following entry at the end of the file:
Some nice color choices (in this case 0;35 it is purple) are:
The first number is the style (1=bold), followed by a semicolon, and then the actual number of the color, possible styles are:
All possible colors:
These can even be combined, so that a parameter like:
in your LS_COLORS variable would make directories appear in bold underlined red text with a green background!
You can also change other kinds of files when using the ls command by defining each kind with:
After you alter your .bashrc file, to put the changes in effect you will have to restart your shell.
This is a collection of extension:color mappings, suitable to use as your LS COLORS environment variable.
Very simple Add these three lines to ~/.bashrc
If you want to apply the changes, type the following in your home directory: