Tape Archive

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Description)
Line 12: Line 12:
  
 
[[Tape Archive]], or 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. The tar command line utility, present in UNIX/Linux systems, offers 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. Archived data in the tar format is sometimes referred to as a "tarball".
 
[[Tape Archive]], or 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. The tar command line utility, present in UNIX/Linux systems, offers 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. Archived data in the tar format is sometimes referred to as a "tarball".
 +
 +
For actual physical tape, see [[Magnetic tape]] or [[Punched tape]].
  
 
== Examples ==
 
== Examples ==

Revision as of 18:16, 5 November 2012

File Formats > Electronic File Formats > Compression > Tape Archive

Description

Tape Archive, or 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. The tar command line utility, present in UNIX/Linux systems, offers 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. Archived data in the tar format is sometimes referred to as a "tarball".

For actual physical tape, see Magnetic tape or Punched tape.

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

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox