unpacking one single file from archive

Rigler, Stephen C. srigler at marathonoil.com
Wed Jan 19 13:04:32 UTC 2005


If the archive, "x.tar.gz", has a file that you want called "z.doc"
then if you only want to extract the one file do:

tar xvzf x.tar.gz z.doc

-Steve 

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Paal Marker
Sent: Wednesday, January 19, 2005 2:13 AM
To: General Red Hat Linux discussion list
Subject: unpacking one single file from archive

Workstation rh8, with  only 1 gb free space.  Contains a big x.tar.gz 
backup file. If unpacking it with '#tar xfvz' it will exceed the disk 
space. 

Is there a way I can unpack only one document of  x.tar.gz?  Like, I 
know the file is named z.doc and is compressed inside  the x.tar.gz 
archive, what are the commands to use? 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list







More information about the redhat-list mailing list