tar -xvjf itunes20140618.tbz itunes20140618/video
Isso deve ser feito para este caso, mas se precisar de mais ajuda,
info tar
To extract specific archive members, give their exact member names as arguments, as printed by
--list (-t)
. If you had mistakenly deleted one of the files you had placed in the archivecollection.tar
earlier (say,blues
), you can extract it from the archive without changing the archive's structure. Its contents will be identical to the original fileblues
that you deleted.First, make sure you are in the
practice
directory, and list the files in the directory. Now, delete the file,blues
, and list the files in the directory again.You can now extract the member
blues
from the archive file 'collection.tar' like this:
$ tar --extract --file=collection.tar blues
If you list the files in the directory again, you will see that the file
blues
has been restored, with its original permissions, data modification times, and owner. (These parameters will be identical to those which the file had when you originally placed it in the archive; any changes you may have made before deleting the file from the file system, however, will _not_ have been made to the archive member.) The archive file,collection.tar
, is the same as it was before you extractedblues
. You can confirm this by runningtar
with--list (-t)
.