.gz.tgz (for gzip archives that store a tar archive inside of them)0x1f 0x8b at offset 0x00application/x-gzipcompress utility,
which uses an algorithm covered by patents (LZW).
Note that as of June 2003, the LZW patent is no longer patented in most parts
of the world. More on LZW on the on the GIF page.gzip -c datafile >> archive.gzThis is especially helpful when adding to very large archives or concatenating existing archives because the step of decompressing and recompressing can be skipped. However, not all archivers can deal with gzip archives created that way. Notably, Winrar and PKUnzip have problems with them.
sample.dat.gz from a file sample.dat, using best compression (-9):
gzip -9 sample.dat
sample.dat.gz to a file sample.dat:
gzip -d sample.dat.gz
java.util.zip.