Using TAR with Bunzip2 files

Want to support HowtoForge? Become a subscriber!
Submitted by VirtualEntity (Contact Author) (Forums) on Fri, 2007-03-02 14:41. :: Linux

Using TAR with Bunzip2 files

Version 1.0
Author: VirtualEntity <lafeyette_management [at] comast [dot] net>
Last edited 02/08/2007

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<version>.tar.bz2

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

tar zxvf linux-source<version>.tar.gz


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.