Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a problem. I have a tar file with absolute path. I want to extract this to a different path. How can i do this ? I cannot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2003
    Posts
    17

    Tar extraction help


    Hi,

    I have a problem.

    I have a tar file with absolute path. I want to extract this to a different path. How can i do this ?

    I cannot create tar archive once again, as the data no more exists.

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by bang_dba
    Hi,

    I have a problem.

    I have a tar file with absolute path. I want to extract this to a different path. How can i do this ?

    I cannot create tar archive once again, as the data no more exists.

    Extracting the tarball creates the file structure within the tarball in the cirrent directory, say there's 3 directories that got tarred up:

    /home/user1
    /home/user2
    /etc

    Then when you extract this tarball in /home/user3/extracted, it will create the folders:
    /home/user3/extracted/home/user1
    /home/user3/extracted/home/user2
    /home/user3/extracted/etc

    with the data in, it wont extract it all to /home/user1, /home/user2, /etc .
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •