[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls color for bad symbolic link



On Tue, 2004-12-14 at 19:29 -0500, Tong wrote:
> On Sat, 11 Dec 2004 16:48:34 -0500, Tong wrote:
> 
> > I remember that my previous distro can distinguish symbolic links as good
> > or bad: good links are show as normal link color whereas bad links are
> > shown as red. 
> > 
> > How can I do that in Debian? Thanks
> 
> Thanks everyone for the respond... yet I'm still looking for the answer
> that I want -- the fact is I have no problem showing colors using ls. Just
> need to distinguish bad symbolic link from good ones. 
> 
> Ok, let's take a look at an example:
> 
> touch a
> ln -s a l1
> ln -s no l2
> rm no
> 
> ls --color=auto
> 
> Do l1 and l2 show up in same color? 
> 
> In my Debian, they are, but in my RH, l2 show up red.

Console or an xterm?

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"Object-oriented programming is an exceptionally bad idea which
could only have originated in California."
Edsger Dijkstra

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: