Thursday, April 19, 2012

Ubuntu 12.04 beta - ls with colors

Hi,
I've experienced an issue that  has annoyed me more than a little bit... so I want to share the solution:

1 - on ubuntu 12.04 beta the terminal emulator won't have ls's output coloured.
2 - I simply NEED it
3 - the code to have colors il ls output is ls --color=auto
4 - the way to override ls is to create an alias with alias ls='ls --color=auto'
5 - the trick to have it "built-in" is to add that code to your $HOME/.bashrc
6 - do you want it for everyone and everywhere in your system? Put it in /root/.bashrc

You can even customize ls and other commands this way.

cheers,
pietro

No comments:

Post a Comment