Create and maintain library archives (POSIX)


ar_variant -key_letter[mod [relpos]] archive [member…]
ar_variant -M [ <mri-script ]

Runs on:

QNX Neutrino, Linux, Microsoft Windows


The ar_variant depends on the target platform, as follows:

Target platform: ar_variant:
ARM ntoarm-ar
MIPS ntomips-ar
PowerPC ntoppc-ar
SH4 ntosh-ar
x86 ntox86-ar


The ar program creates and modifies archives, and extracts members from them. An archive is a single file holding a collection of other files in a structure that makes it possible to retrieve the original individual files (called members of the archive).

The original files' contents, mode (permissions), timestamp, owner, and group are preserved in the archive; you can restore them on extraction. The ar utility can maintain archives whose members have names of any length.

For detailed documentation, see the GNU website at

Contributing author:


See also: