From owner-freebsd-isp Tue Aug 11 19:18:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA26880 for freebsd-isp-outgoing; Tue, 11 Aug 1998 19:18:20 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from aniwa.sky (aniwa.actrix.gen.nz [203.96.56.186]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA26865 for ; Tue, 11 Aug 1998 19:18:16 -0700 (PDT) (envelope-from andrew@squiz.co.nz) Received: from localhost (andrew@localhost) by aniwa.sky (8.8.7/8.8.7) with SMTP id OAA18918; Wed, 12 Aug 1998 14:15:05 +1200 (NZST) (envelope-from andrew@squiz.co.nz) Date: Wed, 12 Aug 1998 14:15:04 +1200 (NZST) From: Andrew McNaughton X-Sender: andrew@aniwa.sky Reply-To: andrew@squiz.co.nz To: Edwin Culp cc: Jack Wenger , freebsd-isp@FreeBSD.ORG Subject: Re: Compressing Tar In-Reply-To: <35D0E692.1DCED11E@webwizard.org.mx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 11 Aug 1998, Edwin Culp wrote: > Jack Wenger wrote: > > Simple question, how can I compress a tarball as it's made, using > > compress? > > Something like: tar -cvf fred.tar * | compress * fred.tar.z, or something > > like that? > how about > # tar -czvf fred.tar.gz * Yuck. It's a good idea to have tarballs contain one directory which contains everything else. Otherwise people unpack things and find their current directory littered with files mixed in with whatever is already there. So, if you want to make a tarball of everything in the current directory called fred then do this: cd .. tar -zcvf fred.tar.gz fred Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message