ar - archive library maintainer
ar -d [-v] [-l] archive file...
ar -h [-lv] [-s] archive [file...]
ar -m [-abilvzZ] [posname] archive file...
ar -p [-v] [-s] archive file...
ar -q [-clvzZ] archive file...
ar -r [-cuvzZ] [-abil] [posname] archive file...
ar -R [-lvzZ] [-s] archive
ar -t [-v] [-s] archive file...
ar -w [-lv] [-s] archive
ar -x [-v] [-osCT] archive file...
The token -- (double-dash) is accepted as a delimiter indicating the end of options. Any following arguments are treated as operands, even if they begin with the - character.
The following options and suboptions are Tru64 UNIX extensions to the standard ar utility:
Options: -h, -w, -R
Interfaces documented on this reference page conform to industry standards as follows:
Refer to the
reference page for more information
about industry standards and associated tags.
The following options are supported: Positions new files in the archive after the existing file named by the posname parameter. Positions new files in the archive before the existing file named by the posname) parameter. Suppresses the diagnostic message that the archiver prints when it creates the specified archive file. Prevents extracted files from replacing like-named files in the file system. This option is useful when -T is also used, to prevent truncated file names from replacing files with the same prefix. Deletes the specified files from the archive file. [Compaq] Sets the file modification times in the member headers of the named files to the current date and time. If you do not specify any filenames, ar sets the time stamps of all member headers. Positions new files in the archive before the existing file named by the posname) parameter (equivalent to -b). Places temporary files in the local current working directory, instead of in the directory specified by the environment variable TMPDIR or in the default directory.
The (ar) utility creates and maintains groups of files combined into a single archive file. Generally, you use this utility to create and update library files that the link editor uses; however, you can use the archiver for any similar purpose.
When ar creates an archive, it creates administrative information in a format that is portable across all machines. When the archive contains at least one object file that ar recognizes as such, an archive symbol table, which the link editor uses to search the archive file, is created. Whenever ar is used to create or update the contents of such an archive, the symbol table is rebuilt. The -s option forces the symbol table to be rebuilt.
utility supports file names up to the operating system limit.
If you specify the same file twice in an argument list, it can appear twice in the archive file.
The -o suboption does not change the `last-modified' date of a file unless you own the extracted file or you are the superuser.
suboption is not operative as
will always build the hash table by default unless the
suboption is specified.
The following environment variables affect the behavior of
Provides a default value for the locale category variables
that are not set or null.
If set, overrides the values of all other locale variables.
Determines the locale for the interpretation of byte sequences
as characters (single-byte or multibyte) in input parameters and files.
Determines the locale used to affect the format and contents
of diagnostic messages displayed by the command.
Determines the format and content for date and time strings
Determines the location of message catalogs for processing
Determines the pathname that overrides the default directory
for temporary files, if any.
Commands: lorder(1), ld(1)