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)

    “Husband,
    who am I to reject the naming of foods
    in a time of famine?”
    —Anne Sexton (1928–1974)

    “The human mind is so complex and things are so tangled up with each other that, to explain a blade of straw, one would have to take to pieces an entire universe.... A definition is a sack of flour compressed into a thimble.”
    —Rémy De Gourmont (1858–1915)

    “The mob is man voluntarily descending to the nature of the beast. Its fit hour of activity is night. Its actions are insane like its whole constitution. It persecutes a principle; it would whip a right; it would tar and feather justice, by inflicting fire and outrage upon the houses and persons of those who have these. It resembles the prank of boys, who run with fire-engines to put out the ruddy aurora streaming to the stars.”
    —Ralph Waldo Emerson (1803–1882)

    “Here files of pins extend their shining rows,
    Puffs, powders, patches, bibles, billet-doux.”
    —Alexander Pope (1688–1744)