Change colors of ls output in the bash shell

Usually colorization is put in action via alias : alias ls='ls --color=auto'
You can turn off the colors each time you run ls: ls --color=never or change the alias itself to disable fancy colors permanently or even simple \ls . But to change the colors you'd need to cause dircolors utility to read your own color database when the login session starts. So let's do just that
1) Export existing db:
# dircolors -p > dircolors.db
2) edit :
# vi dircolors.db
e.g. change directories color from blue to red: di=01;34 -> di=01;31
3) save changes
4) make bash to reload color scheme:
# eval `dircolors dircolors.db`
5) put eval `dircolors $HOME/dircolors.db` into .profile file at the end of it.
That is it.

Follow me on not to miss what I publish on Linkedin, Github, blog, and more.