Vincent Huang Vincent Huang - 4 months ago 28
Linux Question

Extract tar the tar.bz2 file error

i was extract the tar.bz2 file in Fedora 17 OS

and i use the command

# tar -xvjf myfile.tar.bz2

display the error message

tar (child):bzip2: Cannot exec :Nosuch of file or directory

tar (child): Error is not recoverable: exitng now

tar: Child returned status 2

tar:Error is not recoverable: exitng now


For bz2 you need to follow this order of options,

 tar -jxvf

For more information you should check it,

tar --help

If this for any case not works try bunzip2 too. If in doubt, run file on the archive to make sure it actually is compressed in bz2 format.