linux - tar command works but takes too long to finish -


i'm using following command export single file called file (2.6kb once exported) archive.tbz:

tar -xvf archive.tbz ./root/file 

i see output few seconds after running command

x itunes20150701/parental_advisory 

but command not exit long time.

when check exported file, looks it's been exported x itunes20150701/parental_advisory has been outputted.

the command finish, it's minutes later. causing command hang long, when seemingly finishes export of file relatively quickly?

the tar format supports updates. done creating multiple instances of same file in archive. latter 1 should restored after extraction ends. tar therefore looking archived files , taking long time in case.

with gnu tar, can select occurence of stored files want extract. in cases, there 1 can use:

tar --occurence=1 -xvf  archive.tbz itunes20150701/parental_advisory 

Comments