Pages

Jul 15, 2008

Using TAR with Bunzip2 files

Bunzipping and then unTARring in two steps is not convenient.

It is not necessary to use Bunzip2 and then TAR to unzip a file in two separate steps.

Tar will do the job on its own if the -j switch is used, thus:

tar xjvf linux-source.tar.bz2

By the same token, you may use the -z switch with a gzipped file, e.g.

tar zxvf linux-source.tar.gz

Enjoy!

No comments: