bzip2 .bz2 is the filename extension associated with the bzip2 data compression format. It is an open source data compression and decompression tool developed by Julian Seward in 1996. The compression and decompression format is cross platform compatible and comes bundled with versions of Linux and UNIX. The latest of Bzip2 exists as an open source library for download and customization. Earlier versions have executables that can be run directly on Microsoft Windows.
tgz The .gz filename extension refers to the GZIP file format and compression/decompression utility of the same name which was initially released in 1992. It is the extension given to files compressed using the gzip utility. Unlike other compression tools of the time, gzip was originally intended to be used as a tool to compress a single file as opposed to multiple files or entire directories compressed as a single archive. As a work around, multiple files can be archived using the TAR archive file format, then that single TAR archive would then be compressed using the GZIP format. This would give the file a filename extension of .tar.gz.