[TUHS] Why do compress(1) and pack(1) use the .Z / .z extension?

John Cowan cowan at ccil.org
Sat Nov 28 01:57:43 AEST 2020

On Fri, Nov 27, 2020 at 8:07 AM Hans Wennborg <hans at hanshq.net> wrote:

I'm trying to find out why compress(1) uses .Z as filename extension.
> My theory is that it was inspired by pack(1), which uses the .z extension.
I think that connection is plain.  As for the .z extension, I'd guess (and
it's nothing better than that, just a conclusion I jumped to long ago) that
it makes compressed files sort after files that share the same root name.

IIRC, compress(1) used to be able to unpack files as well as uncompressing
them.  I don't know if that's still true.

John Cowan          http://vrici.lojban.org/~cowan        cowan at ccil.org
May the hair on your toes never fall out!  --Thorin Oakenshield (to Bilbo)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20201127/84345caa/attachment.htm>

More information about the TUHS mailing list