Results 1 to 3 of 3
Hey all,
Is there any way to extract a single file or directory from a .tgz archive? I've got a 15GB archive and people are complaining about a performance decrease ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-04-2005 #1
Tar commands
Hey all,
Is there any way to extract a single file or directory from a .tgz archive? I've got a 15GB archive and people are complaining about a performance decrease when I untar the whole thing (and it takes a while). Any help would be appreciated.
Thanks,
Sauce
- 01-04-2005 #2Just Joined!
- Join Date
- May 2004
- Location
- Pennsylvania
- Posts
- 98
sure,
just list the file/directory after the untar command.
for instance lets say we have an archive "website.tar.gz"
and we just want the "public_html" folder
this will extract just the public_html directory.Code:tar -xzvf website.tar.gz public_html
Hope this helps.
- 01-04-2005 #3
No probs - thanks!
I just got a bit confused with the leading slash and the directory structure inside the archive (about 12 directories deep, the file was!).
Thanks again,
Sauce


Reply With Quote
