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

Paul Mullen pem at nellump.net
Mon Jun 10 20:55:58 UTC 2002


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




More information about the PLUG mailing list