Skip to content

Compress And Decompress Tar.Bz2 Files

How to Compress and Decompress .tar.bz2 (bz2 tarball)#

Extract#

tar -vxjf /tmp/archive.tar.bz2

-v: verbose
-x: extract
-z: pass through gzip
-f: bzip2 file

Compress#

tar -jcvf archive_name.tar.bz2 dir_to_compress

Source: