ar (Unix)

ar
Original authorsKen Thompson,
Dennis Ritchie
(AT&T Bell Laboratories)
DevelopersVarious open-source and commercial developers
Initial releaseNovember 3, 1971 (1971-11-03)
Written inC
Operating systemUnix, Unix-like, V, Plan 9, Inferno
PlatformCross-platform
TypeCommand
LicensePlan 9: MIT License
archiver format
Filename extension
.a, .lib, .ar
Internet media type
application/x-archive
Magic number!<arch>
Type of formatarchive format
Container forusually object files (.o)
StandardNot standardized, several variants exist
Open format?Yes

ar, short for archiver, is a shell command for maintaining multiple files as a single archive file (i.e. a file archiver). It is often used to create and update static library files that the link editor or linker uses and for generating deb format packages for the Debian Linux distribution. It can be used to create archives for any purpose, but has been largely replaced by tar for purposes other than static libraries.

Originally developed for Unix, the command is widely available on Unix-based systems, and similar commands are available on other platforms. An implementation is included in GNU Binutils.