The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 03:01 PM
unable to UNTAR a file NIMISH AGARWAL UNIX and Linux Applications 6 05-08-2008 11:35 PM
untar to a specified file melanie_pfefer UNIX for Dummies Questions & Answers 3 11-27-2006 02:32 PM
Untar to different location pradeep_desh UNIX for Advanced & Expert Users 1 05-26-2006 11:05 AM
Untar to different location handak9 UNIX for Advanced & Expert Users 3 09-09-2005 03:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-31-2006
malaymaru malaymaru is offline
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
  #2 (permalink)  
Old 03-31-2006
shoeb_syed shoeb_syed is offline
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
  #3 (permalink)  
Old 03-31-2006
reddymails reddymails is offline
Registered User
  
 

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

tar -xvf /the detsination/directory/youwant yourfile.tar
  #4 (permalink)  
Old 04-11-2006
sunshine737 sunshine737 is offline
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 07:26 PM..
  #5 (permalink)  
Old 09-18-2006
priya_v111 priya_v111 is offline
Registered User
  
 

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

Any help unix experts....

Priya
  #6 (permalink)  
Old 09-18-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0