The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do I untar file through an ssh session? Joe McCaughan UNIX for Advanced & Expert Users 3 05-28-2008 12:01 PM
unable to UNTAR a file NIMISH AGARWAL UNIX and Linux Applications 6 05-08-2008 08:35 PM
untar to a specified file melanie_pfefer UNIX for Dummies Questions & Answers 3 11-27-2006 10:32 AM
Untar to different location pradeep_desh UNIX for Advanced & Expert Users 1 05-26-2006 08:05 AM
Untar to different location handak9 UNIX for Advanced & Expert Users 3 09-09-2005 12:55 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2006
Registered User
 

Join Date: May 2005
Posts: 54
Untar a TAR file at different location

Hi,

I want to UNTAR a TAR file at different location. Is it possible?
My TAR file contains the files with absolute path.

Malay
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-31-2006
Registered User
 

Join Date: Feb 2006
Location: Mumbai, India
Posts: 23
untar

Quote:
Originally Posted by malaymaru
Hi,

I want to UNTAR a TAR file at different location. Is it possible?
My TAR file contains the files with absolute path.

Malay
Hi,

See This Thread.

Best Regards

Shoeb
Reply With Quote
  #3 (permalink)  
Old 03-31-2006
Registered User
 

Join Date: Feb 2006
Posts: 25
Hi ,
Try this

tar -xvf /the detsination/directory/youwant yourfile.tar
Reply With Quote
  #4 (permalink)  
Old 04-11-2006
Registered User
 

Join Date: Apr 2006
Posts: 1
Unhappy

when i use

tar -xvf /destinationfolder sourceDirectory/myTar.tar

then it throws error:
tar: 0511-164 There is a media read or write block size error.

------------------------------------------------------
but pax is not installed.

so i have only possibility of using command: tar

i searched complete site and also most of the google.

still not found exact answer.

any idea?

Last edited by sunshine737; 04-11-2006 at 04:26 PM.
Reply With Quote
  #5 (permalink)  
Old 09-18-2006
Registered User
 

Join Date: Sep 2006
Posts: 3
Is there no solution to this problem?

Any help unix experts....

Priya
Reply With Quote
  #6 (permalink)  
Old 09-18-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Try this:
1. Run tar -tvf on the tarfile. This will tell you what is the absolute path in the tar file.
2. Make a soft link for that path to the actual path where you want to extract the files.
eg. Suppose that the path in the tar file is /home/common/xyz (files are present under the xyz directory) and you want to extract to /home/test directory, then simply do this:
a. mkdir -p /home/common
b. ln -s /home/test /home/common/xyz # assuming here that /home/test exists
3. Run tar to extract the files.
tar -xvf tarfilename # this will extract the files that were in the archive to /home/test
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0