If you are using GNU ls, you could set --color extension to coloring the stuffs.
You can set an alias in your ".profile" or ".bashrc" for ls to ls --color
@clx, thank you for reply and for your welcome.
It didn't work for me. I am using Mac os x Lion which is basically a Unix machine (Darwin) with a GNU Bash version 3.2.48 as you might know. And I don't want to make all "ls" output colored but just the directories so I can easily differ between files and directories.
---------- Post updated at 02:04 AM ---------- Previous update was at 01:54 AM ----------
I got it
It works as following, an example:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacadd
yippiii