tar (computing)

tar (software)
Original authorBell Laboratories
DevelopersVarious open-source and commercial developers
Initial releaseJanuary 1979 (1979-01)
Stable release(s)
BSD tar3.7.2 / 2023-09-12
GNU tar1.35  / 2023-07-18
pdtar1986-10-29 / 1986-10-29
Plan 9 tar? / ?
star2023-09-28 / 2023-09-28
Written inpdtar, star, Plan 9, GNU: C
Operating systemUnix, Unix-like, Plan 9, Microsoft Windows, IBM i
PlatformCross-platform
TypeCommand
LicenseBSD tar: BSD-2-Clause
GNU tar: GPL-3.0-or-later
pdtar: Public domain
Plan 9: MIT
star: CDDL-1.0
Websitelibarchive.org (BSD tar)
gnu.org/software/tar (GNU tar)
Repositorygithub.com/libarchive/libarchive (BSD tar)

savannah.gnu.org/projects/tar (GNU tar)

codeberg.org/schilytools/schilytools (star)
tar (file format)
Filename extension
.tar
Internet media type
application/x-tar
Uniform Type Identifier (UTI)public.tar-archive
Magic numberu s t a r \0 0 0  at byte offset 257 (for POSIX versions)

u s t a r \040 \040 \0  (for old GNU tar format)

absent in pre-POSIX versions
Latest release
various
various
Type of formatArchive file
CompressionNone
StandardPOSIX since POSIX.1, presently in the definition of pax
Open format?Yes

tar is a file format and a file archiver program. The program combines multiple files into a single archive file in the tar file format. It was originally developed for magnetic tape computer storage – reading and writing data for a sequential I/O device with no file system, and the name is short for the format description "tape archive". When stored in a file system, a file that tar reads and writes is often called a tarball.

A tarball contains metadata for the contained files including the name, ownership, timestamps, permissions and directory organization. As a file containing other files with associated metadata, a tarball is useful for software distribution and backup.

POSIX abandoned tar in favor of pax, yet tar continues to have widespread use.