There are numerous compression/archive utilities available and in use on the ‘net. Here are some scratchpad notes for using popular options for some of them. Mostly for my reference, but you may find something useful too.
.bz2 files are handled with the
bzip2 uses a block sorting algorithm that generally gives greater compression rates than other commonly available compression tools.
To decompress a file:
$ bzip2 -d filename.bz2
$ bunzip2 filename.bz2
To decompress a file and keep a replica of the original:
$ bzip2 -dk filename.bz2
$ bunzip2 -k filename.bz2
To decompress a file and send output to stdout:
$ bzip -dc filename.bz2
$ bunzip2 -c filename.bz2
$ bzcat filename.bz2