Skip to content

Terminal with colors in OpenSolaris

As the earlies versions of OpenSolaris, my terminal is without colors. That’s a little annoying. As the default user uses Bash you can configure your Bash options in the file ~/.bashrc. Insert in the last lines of your .bashrc file:

alias ls=’ls –color=auto’

Save, close and open your terminal (or just type source ~/.bashrc).

Published inUncategorized


  1. Marcelo Silva Marcelo Silva

    Silveira, vale ressaltar que esta não é uma feature do bash e sim do ls, que na versão free de todo unix-like é o ‘gnuls’. O ls do unix não tem essa flag (–color). No FreeBSD por exemplo, o ls que vem é proprietário do projeto mesmo, assim como os demais comandos, é necessário ir no ports e baixar/compilar/instalar o gnuls para que o mesmo ative o suporte a cores. Abraço forte!!!


  2. It didn’t work for opensolaris2008.11. Are you aware of this?

  3. Frizz Frizz

    Try using: alias ls=’ls –color=auto’

    You need two dashes not one.

    For more info use: ls –help

  4. Frizz Frizz

    hmmm looks like the wiki auto-corrects double dashes to a single dash.

    it should read ls color=auto

  5. Frizz Frizz

    the wiki is removing just about every special character. I hpe you get the idea anyway :s

Leave a Reply

Your email address will not be published. Required fields are marked *