Subject: Re: NETBSD vs. Linux 'ls' command
To: Max Bell <mbell@europa.com>
From: Dave McGuire <mcguire@rocinante.digex.net>
List: netbsd-help
Date: 02/02/1996 17:01:20
On February 2, you wrote:
> >From: "David Martin" <davidm@hous.inmet.com>
> >Linix has a nice feature such that when using the 'ls' command directorys,
> >links, etc. show up in different colors. Does BSD support that feature. Its
> >nice to be able to tell what something is at a glance!
>
> BSD does not natively support colorized ls, but "ls -F" will append a marker
> character to the end of directory entries to tell you what they are -- "/" for
> directories, "*" for executables, "@" for symbolic, etc. If you really want
> the colorized version, it should be possible to port it (if someone hasn't
> done it already), but I'm not sure how hard it would be.
It's GNU ls...the "-o" option tacks ansi color control escape
sequences onto certain entries. All that would be required is ansi
color support in the console driver. On some Suns at one point, I ran
a color xterm replacement that did this, and it worked with GNU ls
rather well.
Regards,
-Dave McGuire
Systems Engineer
Digital Express Group, Incorporated
mcguire@digex.net