[PLUG] How does 'ls' determine file type for colorization purposes?

Alice Corbin ali at axian.com
Mon Jun 10 21:08:58 UTC 2002


>From the extension.
Do an `echo $LS_COLORS' and you'll see what its default settings are.
Capture that and you can twiddle it to your heart's desire.
Ali

On Mon, Jun 10, 2002 at 01:55:58PM -0700, Paul Mullen wrote:
> As the title says... How does 'ls' determine file type for purposes of
> color-coding it's listings? The man and info pages don't seem to give
> any clue.
> 
> My question stems from my desire to have files of, say, *.tiff displayed
> the same as those of *.tif (truncated file-type extensions are one of
> my pet peeves). Currently, the image files with short extensions are
> colored some garish pink, while the "proper" extensions are not colored
> at all. Argh.
> 
> 
> Paul
> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
----                                 _____       _
     Ali Corbin                        /, |_  __(_) ___  _ __        
     Axian, Inc.                      //| |\\/ /| |/ _ \| '_ \   
     Phone: (503)644-6106 #205  _____//_| | / / | | |_| | | | |  
     e-mail: ali at axian.com     ((   //  |_|/_/\\|_|\_/|_|_| |_|  
     http://www.axian.com/      ``-''          ``-''




More information about the PLUG mailing list