Monday, October 18, 2010

Extract bz2

Have you find a .tar.bz2 file on your system and don't know how to get its content? Here's what to do. It's very easy. First, to uncompress it go to here and get bzip2.

Then use:

bzip2 -d file.bz2 to decompress and delete the original file.

bzip2 -dk file.bz2 to decompress and keep the original file.

This command can be used in conjunction with tar, if the file is an archive:

tar xjf archive.tar.bz2 (to decompress the archive).

For more information on the BZIP2 algorithm, have a look here.


No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...