Extract a gzip compressed tar archive in Linux
The commonly employed archive types on Linux and Unix systems are tar, tar.gz and tar.bz2 archives. Note that tar.gz and tar.bz2 archives are simply gzip-ped and bzip(2)-ped tar archives, respectively. Working with these files is made very simple through the use of GNU tar utility, which is included as part of the base packages in modern distros. In this article, I’ll show you how to create and extract compressed archives using tar.
To extract the archive filename.tar.gz into the current directory:
tar zxf some_aaaaae.tar.gz tar -xjf some_ffffe.tar.bz2