LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tar (https://www.linuxquestions.org/questions/linux-software-2/tar-73125/)

nullpt 07-15-2003 11:26 PM

tar
 
Hi folks,

I have a .tar with lot's of dir's inside. And I would like to extract only one dir from the compressed file. How can I do it? Anyone knows?

I have a site.tar with lot's of dir's and i would want to extract only the ptfrag/ dir from the compressed file.

Thanks for your precious time.

Later all

aizkorri 07-16-2003 01:26 AM

you can do something like:

tar -xf yourTarFile.tar -get yourDirectory
e. g something.tar

tar -xf something.tar -get something/oneOfTheFiles
if will get a directory called something which has inside only oneOfTheFiles.

you can try 'man tar' for more options

hope this helps.


All times are GMT -5. The time now is 06:00 AM.