unpacking one single file from archive

Mitul Kale mitulkale at rediffmail.com
Thu Jan 20 10:27:08 UTC 2005


To extract a particlular file from tar use the below command:

# tar -xvf filename.tar filename_to_be_extracted

On Wed, 19 Jan 2005 Paal Marker wrote :
>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