How to uncompress .tar.gz2 archive in a single command
In Category Command Line
The “tar” command supports a direct option to unompress .tar.gz files automatically. But it doesn’t support any such option for .tar.gz2 archives. So to avoid generating intermediate files, the output of “bzip2” command can be redirected to “tar” command as shown below.
[neo@techpulp ~]# bzip2 -dc myproject.tar.bz2 | tar -x