Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!yale!mintaka!bloom-beacon!athena.mit.edu!jik From: jik@athena.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.questions Subject: Re: un-tarring a disk file Message-ID: <1990May3.184405.22818@athena.mit.edu> Date: 3 May 90 18:44:05 GMT References: <8832@hydra.gatech.EDU> <12772@smoke.BRL.MIL> Sender: news@athena.mit.edu (News system) Reply-To: jik@athena.mit.edu (Jonathan I. Kamens) Organization: Massachusetts Institute of Technology Lines: 24 In article <12772@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn) writes: |> The "f" option to "tar" allows you to specify an archive file name |> in place of the default (that is normally a magtape device file name). |> However, for a .Z file you should first "uncompress" it. Actually, if you have "compress" and "uncompress" at your site, you probably have "zcat" as well. At the very least, you should have some way of uncompressing a file to the standard output, rather than uncompressing it back into disk space. If you do, then it's better to do the uncompress and untar at the same time, so you don't have the uncompressed tar archive taking up extra space (that is, after all, why it's compressed :-). When I get a compressed tar archive, I usually use: zcat filename.tar.Z | tar xvf - The "-" for the filename tells tar to read from the standard input, as per the tar man page. Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710