*BSD News Article 45122


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!news.kei.com!bloom-beacon.mit.edu!news.starnet.net!wupost!howland.reston.ans.net!agate!tcsi.tcs.com!uunet!zib-berlin.de!news.tu-chemnitz.de!irz401!narcisa.sax.de!not-for-mail
From: j@narcisa.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [Q] uncompressing .tgz file
Date: 7 Jun 1995 13:18:40 +0200
Organization: Private U**x site, Dresden.
Lines: 31
Message-ID: <3r41ug$m7i@bonnie.tcd-dresden.de>
References: <3qvrcv$eh8@hpscit.sc.hp.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Alan Yang <ayang@ppg01.sc.hp.com> wrote:
>Can somebody tell me how to uncompress .tgz file, and where can
>I get the program(maybe the source)?

.tgz is a crippled file name suffix standing for ``.tar.gz'', meaning
it's a tar archive file compressed with gzip.  (It's certainly rather
obvious for which kind of ancient file system the crippling has been
done. :)

Generally, look at the file with:

	gzcat file.tgz | tar -tf -

or extract it with

	gzcat file.tgz | tar -xvf -

Since i assume you're running FreeBSD which comes with GNU tar, you
can ease the handling by letting GNU tar call the gzip program:

	tar -tzf file.tgz (to view the TOC)
	tar -xvzf file.tgz (to extract)


To your second question: it's not clear to me which program/source you
are referring to.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)