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.
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.
tar -xzvf website.tar.gz public_html
Hope this helps.
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!).