Wayne Petherick wrote:
> How do I unpack a file with a .tar.bz2 extension?
>

Quickly, you can do it one of two ways. 

$ bzcat file.tar.bz2 | tar x

or

$ tar yxf file.tar.bz2

The first way uses "bzcat" to print out the uncompressed contents of the
.tar.bz2 file.  Meaning that it's printing a tar file to standard
out.  You're then piping the the output to tar, which extracts the
contents of the tar file.

The second method uses the "y" option of tar, which tells tar to use
"bunzip2" to decompress the archive before un-tarring it.  Mandrake
compiled tar with built-in support for bzip2 archives, which is why you
can use the "y" option.  This will not work in all systems.

-Matt Stegman
<[EMAIL PROTECTED]>



Reply via email to