From owner-freebsd-hackers Thu Oct 23 23:09:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA26224 for hackers-outgoing; Thu, 23 Oct 1997 23:09:39 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from safeconcept.utimaco.co.at (mail-gw.utimaco.co.at [195.96.28.162]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA26212 for ; Thu, 23 Oct 1997 23:09:33 -0700 (PDT) (envelope-from Michael.Schuster@utimaco.co.at) Received: (from uucp@localhost) by safeconcept.utimaco.co.at (8.8.5/8.8.5) id HAA22777 for ; Fri, 24 Oct 1997 07:57:59 +0200 (CEST) Received: from wshpux.utimaco.co.at(10.0.0.18) by safeconcept via smap (V2.0) id xma022772; Fri, 24 Oct 97 07:57:34 +0200 Message-ID: <34503B08.16D941F7@utimaco.co.at> Date: Fri, 24 Oct 1997 08:07:04 +0200 From: Michael Schuster Organization: Utimaco Safe Concept GmbH., Linz, Austria X-Mailer: Mozilla 4.03 [de] (X11; I; HP-UX B.10.01 9000/715) MIME-Version: 1.0 To: "hackers@FreeBSD.ORG" Subject: .zip vs. .tar.gz [was: zipfs filesystem anyone ? ] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Mike Smith wrote: >You are correct; gzipped tarfiles are organised the wrong way around >(metadata inside the compressed envelope), while zipfiles keep the >metadata outside. If you like, you can first compress all your files and then tar them, doing something like (not tested, just FTTOMH (from the top of my head:-)) find . -type f | xargs gzip tar cf . This is of course not as elegant as saying tar ....; gzip tarfile The whole difference obviously comes from different approaches: Zip does compression and archiving in one, whereas tar and gzip build on the typical UNIX way of doing things: one tool for one purpose. That way, your tools will be good, and you can upgrade one without having to touch the other. cheers Michael -- Michael Schuster Utimaco Safe Concept GmbH. | Tel: +43 732 655755 41 Europaplatz 6 | Fax: +43 732 655755 5 A-4020 Linz Austria | email: Michael.Schuster@utimaco.co.at