Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I am using putty to link to centos.

however my directories all are showing in one single color.

But in other terminal to ubuntu it shows directories as blue color.

how can i fix that

share|improve this question
What version CentOS? Also, take a look here: – txtechhelp Dec 4 '12 at 6:58
centos6.3 , with byobu and putty – user1721949 Dec 4 '12 at 7:01
I tried that with root but it chaged the color of dir with root only. When i go back to user again color go back to normal. i think my file gets overwritten every time – user1721949 Dec 4 '12 at 7:08
@user1721949: what shell do you use for root login and for user login? – Lie Ryan Dec 4 '12 at 7:32
i i use same putty termianl and then sudo to root – user1721949 Dec 4 '12 at 7:46

Put this entry in .bashrc

LS_COLORS='di=0;35'; export LS_COLORS

And put this entry in .bash_profile

if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
share|improve this answer
i tried it but color didn't chnaged – user1721949 Dec 5 '12 at 1:22

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.