ar (Unix)
| ar | |
|---|---|
| Original authors | Ken Thompson, Dennis Ritchie (AT&T Bell Laboratories) |
| Developers | Various open-source and commercial developers |
| Initial release | November 3, 1971 |
| Written in | C |
| Operating system | Unix, Unix-like, V, Plan 9, Inferno |
| Platform | Cross-platform |
| Type | Command |
| License | Plan 9: MIT License |
| archiver format | |
|---|---|
| Filename extension |
.a, .lib, .ar |
| Internet media type |
application/x-archive |
| Magic number | !<arch> |
| Type of format | archive format |
| Container for | usually object files (.o) |
| Standard | Not 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.