Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've seen everywhere I look:

Edit .bash_profile on your home directory.

The thing is, I don't have any .bash_profile on my home directory.

At least I do pico ~/.bash_profile and I see nothing.

How can I colorize the ls output ?

Thanks a lot

share|improve this question
    
Perhaps we can just create it ? –  MEM May 19 '12 at 16:48
    
yes I can indeed create it. :) –  MEM May 19 '12 at 17:17

2 Answers 2

up vote 1 down vote accepted

Edit (or create) your ~/.bashrc to include the following:

# LS coloring
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
share|improve this answer
    
I've created a .bash_profile and place your lines inside. That worked. Some of my directories, not all, appear as a yellow/gold background - can you tell me why? Thanks. –  MEM May 19 '12 at 17:04
1  
Those are related with permissions on that folder. –  MEM May 19 '12 at 17:17
ls -la

will show you all files in a long format that also includes permissions. Is the file really there? Do you have permission to read it?

share|improve this answer
    
The file isn't there. The only thing similar perhaps is one called ".bash_history" –  MEM May 19 '12 at 16:45

Your Answer

 
discard

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.