Super User is a question and answer site for computer enthusiasts and power users. 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

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .