![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting from a tar file | nmalencia | UNIX Desktop for Dummies Questions & Answers | 1 | 03-22-2008 03:42 AM |
| How to view the contents of .gz file without extracting the file? | amitkhiare | Shell Programming and Scripting | 3 | 01-13-2008 09:35 PM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-09-2007 11:25 PM |
| extracting XML file using sed | pujansrt | Shell Programming and Scripting | 7 | 06-29-2007 10:18 AM |
| [Splitting file] Extracting group of segments from one file to others | ozgurgul | Shell Programming and Scripting | 1 | 09-14-2006 09:17 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
extracting from a tar file
Dear experts
I have received a tar file containing several files with full path. Now I need to restore it in another system but when I want to extract files by using tar -xvf tarfile it wants to create all files with full paths again in new system in which I don't have enough previleges. How can I restore these files in my directory without creating their full path?? Thanks and regards |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
try this:
tar -xvf tarfile -C new_dir |
|
#3
|
|||
|
|||
|
Quote:
I have tried but it doesn't create any file in the new directory even with full path. Is that because I am using Solaris8?? Regards |
|
#4
|
||||
|
||||
|
See this thread: Untar to different location
|
|
#5
|
|||
|
|||
|
Quote:
Thank you very much. It was successful. Cheers |
|||
| Google The UNIX and Linux Forums |