Colors in `ls`

How to make (a gumstix say) show colors for ls (assuming your login shell is bash). Edit ~/.bashrc and ~/.bash_profile to match these files:

Make sure your shell is bash (if it’s not, you can change it in /etc/passwd):

root@overo:~# echo $SHELL
/bin/bash

In ~/.bashrc:

root@overo:~# cat .bashrc 
export LS_OPTIONS='--color=auto'
eval `dircolors`
alias ls='ls $LS_OPTIONS'

In ~/.bash_profile:

root@overo:~# cat .bash_profile 
source ~/.bashrc

10/16/11