![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Tar utility (untar a .tar file) on VxWorks | uday_01 | UNIX for Advanced & Expert Users | 1 | 05-26-2008 09:13 AM |
| unable to UNTAR a file | NIMISH AGARWAL | UNIX and Linux Applications | 6 | 05-08-2008 11:35 PM |
| Untar a TAR file at different location | malaymaru | UNIX for Dummies Questions & Answers | 5 | 09-18-2006 08:59 PM |
| unTar a specific file from remote | gelbvonn | Shell Programming and Scripting | 2 | 05-25-2006 03:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I suggest to place the tar file in the directory you would like the files to be untarred to. Then when you untar the files should be placed in that directory.
The exception is if the files were tarred with / preceding the path. Then the files will be untarred to the root directory. You can determine where the files will be untarred by using the t option. tar -tvf files.tar will show you the paths of where the files will be untarred. |
|
||||
|
Its more like this. If you do a tar -tvf and you see that the paths are
myfiles/file1.txt myfiles/file2.txt if you put the tar file in /usr and extract it then the path for the files become /usr/myfiles/file1.txt /usr/myfiles/file2.txt the only exception is if you do a tar -tvf and you see the paths are /myfiles/file1.txt /myfiles/file2.txt then because of that leading / the file path for the files will become /myfiles/file1.txt /myfiles/file2.txt no matter where you extract the tar. Hope that makes makes it easier ![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|