tarballs
Hi, I have a question about tar files.
Let's say I want to back up my /home directory: $ tar cvzf backup.tgz /home So now I have backup.tgz. When I extract it, I notice it extracts into the same directory as my backup, /home. What if, for instance, I want it to extract into the /usr/blah directory instead? How would I do that? Does tar have a "dest =" type of option in it? |
Just change into the directory you would like it extracted to.
Regards |
Hm...I thought I did that before and it installed in the directory I created it from. I have to try that again.
|
tar -C /targetdir -x tarfile
|
Quote:
|
All times are GMT -5. The time now is 06:01 PM. |