Tape Archive

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 25: Line 25:
 
  tar xvf output.tar.gz
 
  tar xvf output.tar.gz
  
== References ==
+
== Documentation ==
 
+
 
* [http://linux.die.net/man/1/tar Linux man page for tar]
 
* [http://linux.die.net/man/1/tar Linux man page for tar]
 
* [http://www.freebsd.org/cgi/man.cgi?query=tar&sektion=5&manpath=FreeBSD+8-current FreeBSD man page giving format info]
 
* [http://www.freebsd.org/cgi/man.cgi?query=tar&sektion=5&manpath=FreeBSD+8-current FreeBSD man page giving format info]
* [http://en.wikipedia.org/wiki/Tar_%28file_format%29 tar (file format) (Wikipedia)]
 
 
* [http://cdrecord.berlios.de/private/man/star/star.4.html star man page] by Jörg Schilling
 
* [http://cdrecord.berlios.de/private/man/star/star.4.html star man page] by Jörg Schilling
 +
 +
== Software ==
 +
* [http://www.7-zip.org/ 7-Zip will extract tar and .tar.gz (and other formats)]
 +
 +
== References ==
 +
 +
* [http://en.wikipedia.org/wiki/Tar_%28file_format%29 tar (file format) (Wikipedia)]
 
* [http://xkcd.com/1168/ XKCD comic]
 
* [http://xkcd.com/1168/ XKCD comic]
 
* [http://superuser.com/questions/234649/how-to-extract-a-tar-file-tgz-in-windows Discussion on extracting a .tgz file]
 
* [http://superuser.com/questions/234649/how-to-extract-a-tar-file-tgz-in-windows Discussion on extracting a .tgz file]

Revision as of 03:09, 6 June 2013

This article is about the electronic archive format. For physical tape archives, see Magnetic tape or Punched tape.
File Format
Name Tape Archive
Ontology
Extension(s) .tar, .tgz
MIME Type(s) application/x-tar
PRONOM x-fmt/265

Tape Archive (tar) is a traditional UNIX archive format, defined in POSIX.1-1988 and later POSIX.1-2001. Its original purpose was to archive files on backup tapes. While tar itself does not offer any compression, it's frequently used together with an stream compression format such as gzip, bzip2 and sometimes XZ to provide file archiving plus compression. Most modern implementations of tar, present in UNIX/Linux systems, offer built-in support for this combined operation by using a modifier such as z (GZip) or j (BZip2). Files compressed this way should have a dual file extension such a .tar.gz or tar.bz2 (but sometimes the .tgz extension is used in place of .tar.gz). Archived data in the tar format is sometimes referred to as a "tarball".

Contents

Variants

There exist actually some variants to the TAR archive. The original POSIX.1-1988 TAR format had limitations on the type of files it could contain and the length of filenames. That's why the USTAR format was later developed and standardized as POSIX IEEE P1003.1. Jörg Schilling has collected some information about the different implementations, see the references section. There's also an old version (often referred to as "non-ANSI Tar" or simply "old Tar") which both GNU Tar and STar can read and write

Disk Archiver (DAR) was intended by its authors as a replacement for TAR, supporting file compression among other features.

Examples

Compressing two files into a .tar.gz archive

tar cvf output.tar.gz inputfile1 inputfile2

Extracting a .tar.gz archive to the current directory.

tar xvf output.tar.gz

Documentation

Software

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox