How to exract tar.gz/bz2/tbz files :
If Your File Extension is .tar.gz (or .tgz) use this command
tar xvzf file.tar.gz
x: This tells tar to extract the files.
v: This option will list all of the files one by one in the archive. The “v” stands for “verbose.”
z: The z option is very important and tells the tar command to uncompress the file (gzip).
f: This options tells tar that you are going to give it a file name to work with.
** If Your File Extension is .tar.bz2 (or .tbz)**
The major difference between these two is that the z option has been replaced by the j option.