Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (a - b) ar(1)
NAME
ar - Creates and maintains archive les and libraries
SYNOPSIS
ar -d [-v][-l] archive le ...
ar -m [-abilv][position_name] archive le ...
ar -p [-v][-s] archive [le ...]
ar -q [-clv] archive [le ...]
ar -r [-cuv][-abil][position_name] archive le ...
ar -t [-v][-s][-Wletype] archive [le ...]
ar -Wobey obey_le
ar -x [-v][-sCT] archive [le ...]
FLAGS
In an ar command, you can list selected ags together in one group on the command line, with
no spaces between them. You can precede this single ag list with a - (dash), but it is not
required.
You must specify at least one ag from the required-ag set dmpqrtx. You can also specify any
number of optional ags from the set abcilsuvCT. If you select a positioning ag (a, b,ori), you
must also specify the name of a le within the library (position_name) immediately following the
ag list and separated from it by a space.
-a Positions new les in the archive after the le identied by the position_name
operand.
-b Positions new les in the archive before the le identied by the position_name
operand.
-c Suppresses the diagnostic message written to the standard error le by default
when the archive le archive is created.
-C Prevents extracted les from replacing like-named les in the le system. This
ag is useful with the -T ag to prevent truncated lenames from replacing les
with the same prex.
-d Deletes the named les from the archive.
-i Positions new les in the archive before the le identied by the position_name
operand. (This ag is equivalent to the -b ag.)
-l Creates temporary les in the local current working directory, rather than in the
directory specied by the environment variable TMPDIR.
-m Moves the named les to some other position in the archive. By default, this ag
moves the named les to the end of the archive. Use the positioning ags (a, b,
or i) to specify a position other than the default position.
-p Writes the contents of the named les from archive to the standard output le. If
no les are specied, the contents of all les in the archive are written in the
order they occur in the archive.
527188-003 Hewlett-Packard Company 17