Advertisement

12.26.2005 at 09:53AM PST, ID: 21675570
[x]
Attachment Details

extract a tar to a different path

Asked by barthalamu in Sun Solaris

Tags: tar, extract, different, path

I would like to extract a tar archive that was made using full paths to a different sub-directory and NOT the full path that is contained in the tar.  Is there a way to "redirect" this from my existing tar archive?  Here is what I mean:

tar archive containing:
/usr/local/stuff/*

Extract to:
/mount1/...

I just want everything to be placed under a different directory, say mount1 in this example.  Thanks.Start Free Trial
 
Loading Advertisement...
 
[+][-]12.26.2005 at 10:47AM PST, ID: 15551665

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.26.2005 at 06:04PM PST, ID: 15553338

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.26.2005 at 07:11PM PST, ID: 15553722

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Sun Solaris
Tags: tar, extract, different, path
Sign Up Now!
Solution Provided By: jlevie
Participating Experts: 4
Solution Grade: A
 
 
[+][-]12.27.2005 at 02:10AM PST, ID: 15554739

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.28.2005 at 08:50AM PST, ID: 15563555

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.08.2006 at 06:30PM PST, ID: 15645498

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32