Tar (computing) - Naming of Compressed Tar Files

Naming of Compressed Tar Files

"TGZ" redirects here. For other uses, see TGZ (disambiguation).

tar archive files usually have the extension .tar, as in somefile.tar. The pun, tarball, is used to refer to a tar file.

A tar archive file contains uncompressed byte streams of the files which it contains. To achieve archive compression, a variety of compression programs are available, such as gzip, bzip2, xz, lzip, lzma, or compress, which compress the entire tar archive. Typically, the compressed form of the archive receives a filename by appending the format-specific compressor suffix to the archive file name. For example, a tar archive archive.tar, is named archive.tar.gz, when it is compressed by gzip.

Popular tar programs like the BSD and GNU versions of tar support the command line options Z (compress), z (gzip), and j (bzip2) to automatically compress or decompress the archive file upon creation or unpacking. GNU tar from version 1.20 onwards also supports --lzma (LZMA). 1.21 also supports lzop via --lzop, 1.22 adds support for xz via --xz or -J, and 1.23 adds support for lzip via --lzip.

MS-DOS's 8.3 filename limitations, resulted in additional conventions for naming compressed tar archives. (This practice has declined with FAT offering long filenames.)

Equivalent File Suffixes
Short Long
.tgz .tar.gz
.tbz, .tbz2 & .tb2 .tar.bz2
.taz .tar.Z
.tlz .tar.lz
.txz .tar.xz

Read more about this topic:  Tar (computing)

Famous quotes containing the words naming of, naming, compressed, tar and/or files:

    The night is itself sleep
    And what goes on in it, the naming of the wind,
    Our notes to each other, always repeated, always the same.
    John Ashbery (b. 1927)

    The night is itself sleep
    And what goes on in it, the naming of the wind,
    Our notes to each other, always repeated, always the same.
    John Ashbery (b. 1927)

    Give up the belief that mind is, even temporarily, compressed within the skull, and you will quickly become more manly or womanly. You will understand yourself and your Maker better than before.
    Mary Baker Eddy (1821–1910)

    A thorough tar is unfit for any thing else; and what is more, this fact is the best evidence of his being a true sailor.
    Herman Melville (1819–1891)

    The good husband finds method as efficient in the packing of fire-wood in a shed, or in the harvesting of fruits in the cellar, as in Peninsular campaigns or the files of the Department of State.
    Ralph Waldo Emerson (1803–1882)