Your .bashrc file contains your bash shell user settings.

The color scheme used by ls is stored in the $LS_COLORS environment variable. By default this uses the color scheme configured in the dircolors database. You can see these settings using dircolors –print-database.

You can specify an alternative input file for dircolors, but if you just want to modify one or two settings it maybe easier to append them to $LS_COLORS near the end of .bashrc; e.g.:


(This replaces the standard blue text on green background used for other-writable files without the sticky bit set).

In some (e.g. Mac-based) environments, you might find that your user settings are in the file .bash_profile. To harmonize your environments you can set .bash_profile to apply your .bashrc (then carry on using .bashrc as usual):

# Put this in your .bash_profile file.
if [ -f ~/.bashrc ]; then
   source ~/.bashrc