Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im having a hard time reading in blue colored text, whenever i work using cli, directory colors are by default blue or so, my co-worker changed it to blue.

how can i easily change the directory color only? like turn it to red or yellow, so it stands out and not hurt my eyes. blue text and black background makes me uncomfortable.

share|improve this question
Your co-worker changed it to blue? It's by default blue (as you just mentioned)... What did you mean by that? I'm assuming you mean directory color in ls? Also, you could try using a white background (it makes things so much easier for me ^^) – MiJyn Jun 18 '13 at 2:41

Doing a quick google search (and some testing), I found out this solution:

So more or less, set the LS_COLORS environment variable to something like di=31;1 (for red) or di=33;1 for yellow.

Here is a list of colors (the part after di=) you can use:

Also, check this out for further information:

share|improve this answer

Add this to the end of ~/.bashrc:

# colors:
PROMPT_BLUE=`tput setf 1`
PROMPT_GREEN=`tput setf 2`
PROMPT_CYAN=`tput setf 3`
PROMPT_RED=`tput setf 4`
PROMPT_MAGENTA=`tput setf 5`
PROMPT_YELLOW=`tput setf 6`
PROMPT_WHITE=`tput setf 7`
PROMPT_BLACK=`tput setf 8`

# prompt which shows  yellow path relative to Your home dir:
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.