TarTool sample.tgz temp >TarTool -x sample.tar temp TarTool 2.0 Beta supports bzip2 files such as tar.bz2 and.bz2 extraction. TarTool -xj sample.tar.bz2 temp or TarTool -j sample.bz2 More details are on this post.
Alternate Method (safer) Although uncommon, you may run across an archive file that does not extract itself cleanly into its own directory. For this case, it is safer to extract the archive in a temporary directory (e.g. Temp), to avoid potentially hundreds of files not being placed into their own directory and thrown into the current directory with all of your downloaded files; as in this example anyway. Then you have the tedious task of deleting or moving each file and/or directory that does not belong. To use the alternate method, after the cd command in the section above, follow the replacement steps below.