Extract file from tar home/
jcraig at extraview.com
Mon Jun 7 22:08:11 UTC 2010
it only makes sense, zip deflated the individual files and tar is
ignorance of that requirement.
hence the untar, then unzip.
you might consider
$tar czvf /tmp/bob.tar.gz /home/bobg/
then each file is compressed by tar on the way to the tarball.
i think then you can do a
$tar xzvf /tmp/bob.tar.gx /home/bobg/somefile
and i think that might do what you want.
but test first! :)
On 06/07/2010 02:58 PM, Bob Goodwin wrote:
> On 07/06/10 17:52, Luc MAIGNAN wrote:
>> tar -xzvf bobg.tar.gz file_to_extract
>> "man tar" is your friend...
>> Le 07/06/10 23:48, Bob Goodwin a écrit :
>>> I have /home/bobg/ tar'd to "bobg.tar.gz." Can I extract individual
>>> files or directories without unzipping the entire 17 gigs?
> Yes I've been working with "man tar" and Google so thought I would
> come to the place of last resort.
> AS I suspected it probably has to be unzipped first but that's ok,
> just a thought.
More information about the users