ar.1
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 174 行
1
174 行
.TH ar 1 RISC.SH Namear \- archive and library maintainer.SH Syntax.B aroption [ \fIposname\fR ] archive file ....SH DescriptionThe archiver .B ar maintains groups of files asa single archive file.This utility is generally used to create and update library files that the link editor uses; however, youcan use the archiver for other similar purposes..NTThis versionuses a portable ASCII-format archive that you can use on variousmachines that run \s-2UNIX\s0.If you have an archive that uses an older format, see .MS arcv 8 ..SH OptionsThis section describes the options and suboptions that you can use with the .B arutility. Suboptions mustbe specified with options.Following is a list and description of the options:.TP.B dDeletes the specified files from the archive file..TP.B rReplaces the specified files in the archive file.If you use the suboption.B uwith.B r,the archiver only replaces those files that have last-modified dates later than the archive files. If you use a positioning character (from the set.B abi)you must specify the.I posnameargument to tell the archiver to put the new files after.RB ( a )or before.RB ( bor.BR i ).Otherwise, the archiver puts new files at the end of the archive..TP.B qAppends the specified files to the end of the archive file.The archiver does not accept suboption positioning characters with the\fBq\fR option.It also does not checkwhether the files you want to add already exist in the archive.Use the \fBq\fR optiononly to avoid quadratic behavior when you create a largearchive piece by piece..TP.B tPrints a table of contents for the files in the archive file.If you do not specify any filenames, the archiver builds a table of contents for all files.If you specify filenames, the archiver builds a table of contents only for those files..TP.B pPrints the specified files from the archive..TP.B mMoves the specified files to the end of the archive.If you specify apositioning character,you must also specify the.I posname(as in option.B r)to tell the archiver where to move the files..TP.B xExtracts the specified files from the archive.If you do not specify any filenames, the archiver extracts all files.When it extracts files, the archiver does not change any file.Normally, the last-modified date for eachextracted file shows the date when someone extracted it; however, whenyou use .B o,the archiver resets the last-modified date to the date recorded in thearchive..TP.B sMakes a symbol definition (symdef file) as the first file of an archive.This file contains a hash table of.I ranlibstructures and a corresponding string table. The symdef file's name is based on the byteordering of the hash table and the byte ordering of the file's target machine.Files must be consistent in their target byte ordering before the archiver can create a symdef file.If you change the archive contents, the symdef file becomes obsolete because the archive file's name changes. If you specify s,the archivercreates the symdef file as its last action before finishing execution.You must specify at least one other archive option (m, p, q, r, or t) when you use the \fBs\fR option. For UMIPS-V, archives include memberobjects based on the definition of a common object only. For UMIPS-BSD,they define the common object, but do not include the object..TP.B vGives a file-by-file description as the archiver makes anew archive file from an old archive and its constituent files.When you use this option with.B t,the archiver lists all information about the files in the archive.When you use this option with.BR p ,the archiverprecedes each file with a name..TP.B cSuppresses the normal message that the archiver prints when it creates the specified archive file. Normally, the archivercreates the specified archiver file when it needs to..TP.B lPlaces temporary files in the local directory.If the l option is not used then the value of the environmentsymbol, TMPDIR, is used as the directory for temporary files.If TMPDIR is not defined or if the directory it references isnot writable then /tmp is used..PPThe suboptions do these things:.TP.B aSpecifies that the file goes after the existing file (\fIposname\fR).Use this suboption with the \fBm\fR or \fBr\fR options..TP.B bSpecifies that the file goes before the existing file (\fIposname\fR).Use this suboption with the \fBm\fR or \fBr\fR options..TP.B iSpecifies that the file goes before the existing file (\fIposname\fR).Use this suboption with the \fBm\fR or \fBr\fR options..TP.B oForces a newly created file to have the last-modified date that it had before it was extracted from the archive. Use this suboption with the\fBx\fR option..TP.B uPrevents the archiver from replacing an existing file unless the replacement is newer than the existing file. This option uses the UNIX system lastmodified date for this comparison. Use this suboption with the \fBr\fRoption..SH RestrictionsIf you specify the same file twice in an argument list,it can appear twice in the archive file..PPThe \fBo\fR option does not change the last-modified date of a fileunless you own the extracted file or you are the superuser..PPThis command truncates filenames to 15 characters..SH Files/tmp/v* temporaries.SH See Alsolorder(1), ld(1), odump(1), ranlib(1), ranhash(3x), ar(5), arcv(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?