ls color

Hi ppl!

Do you know how to display color with ls in aix 4.3, 5.2 and in hpux and sunos as well ?

thanks.

The only systems I've personally seen color in `ls` output is GNU/Linux systems.

That's because they're using GNU ls, from the GNU fileutils package. If you look at your aliases, you'll probably find that "ls" is an alias for "ls --color=tty", meaning that any time the output is a terminal, you'll get color (but not if output is a pipe or a file).

As far as I know, you can either compile and install GNU ls, or you may be out of luck.

For HP-UX, see this.

For SunOS, see http://www.sunfreeware.com/

I wonder if there is a similiar site for AIX. I don't know of one.

Thanks guys