Home > linux > xterm shell ls color dark blue, lighten to yellow

xterm shell ls color dark blue, lighten to yellow

November 11th, 2009 dwright Leave a comment Go to comments

When working from the command line in a remote terminal (black background xterm - ssh)

the default directory listing (ls) colors are dark blue, which is hard to read.

here is a hack to make them bright-ish yellow and easy to see. (NOTE this is the color FIFO and SOCK use, so if that is an issue for you, choose a different color)

cp /etc/DIR_COLORS ~/.dir_colors
vi ~/.dir_colors

change this line:
DIR 01;34 # directory

to this:
DIR 01;33 # directory

now log out of your session and log back in again.

viola!

NOTE: if you then work in a text editor such as vim, you may want to set a ligther color scheme as well :colorscheme desert should do it

(NOTE: This hack will change it on a per-user basis, you would have to modify the main /etc/ files for system wide changes. There is also probably a better way to do this,...)

Categories: linux Tags: , , , ,
  1. spikeerob
    March 10th, 2010 at 04:57 | #1

    Thanks for that.

    No more straining to see for me!

  2. March 10th, 2010 at 11:16 | #2

    Here's another useful one, where you don't have to edit anything.

    $ export LS_COLORS="`echo $LS_COLORS |sed 's/di=[0-9]*;[0-9]*/di=01;93/; s/ow=[0-9]*;[0-9]*/ow=01;93/'`"

    ref: configuring-ls_colors