I have the following archived directory:
itunes20140618.tbz
I want to extract single file from it called:
itunes20140618/video
How would I do this?
So far, I am doing
$ bzip2 -d /tmp/itunes20140618.tbz
But it seems to create a tar directory of everything. How would I extract just the single video file?
There are a few different versions of
tararound, but on my machine I can do this:To extract filename from archive.
If that doesn't work you can use:
Which uses
bzip2to extract to stdout and then pipe totar.In both cases you can replace the
xoption withtto get a list of files. Eg: