ar.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 185 行

1
185
字号
.\" SCCSID: @(#)ar.1	5.1	1/17/89.TH ar 1 VAX.SH Namear \- archive and library maintainer.SH Syntax.B ar\-\fIkey\fR [\|\fIposname\fR\|] \fIafile name...\fR.SH Description.NXR "ar program".NXAM "ar program" "ar file".NXA "ar program" "nm command".NXR "library file" "archive file".NXR "archive file" "maintaining"The.PN arcommand maintains groups of filescombined into a single archive file.The .PN ar command is used to create and update library files as they are used by the loader..PPThis version of.I aruses a ASCII-format archive, which can be used by the variousmachines running \s-2UNIX\s0.Programs for dealing with older formats are also available.  For furtherinformation, see.MS arcv 8 ..PPThe.I keyis one character from the following set:\fBd\fR, \fBr\fR, \fBq\fR, \fBt\fR, \fBp\fR, \fBm\fR, \fBx\fR.The.I keycharacter can be concatenated withone or more of the following optional characters:\fBv\fR, \fBu\fR, \fBa\fR, \fBi\fR, \fBb\fR, \fBc\fR, \fBl\fR,\fBo\fR.The.I afileis the archive file.The.I namesare constituent files in the archive file..SH OptionsThe OPTIONS section is divided into two sections:  the first sectionlists the.I keycharacters and their meanings, and the second section liststhe optional characters and their meanings..PPFor backward compatibility, the \fIkeys\fR work without the dash (\-)..NXR "ar program" "options"The definitions of the.I keycharacters are as follows:.IP d Deletes the named files from the archive file..IP mMoves the named files to the end of the archive.If a positioning character is present,then the.I posnameargument must be present and,as in.B r,it will specify where the files are to be moved..IP pPrints the named files in the archive..IP q Appends the named files to the end of the archive file.Optional positioning characters are invalid.The command does not check whether the added filesare already in the archive.  The \fBq\fR option is used primarilyto avoid quadratic behavior when you are creating a largearchive piece-by-piece..IP r Replaces the named files in the archive file.If the optional character.B uis used with.B r,then only those files with last-modified dates later thanthe archive files are replaced.If an optional positioning character from the set\fBa\fR, \fBb\fR, or \fBi\fRis used, then the.I posnameargument must be presentand it specifies that new files should be placedafter.RB ( a )or before.RB ( bor.BR i ).IR posname .Otherwisenew files are placed at the end..IP tPrints a table of contents of the archive file.If no names are given, all files in the archive are included in the table of contents.If file names are specified, only those files are included in thetable of contents..IP xExtracts the named files.If no names are given, all files in the archive areextracted.However,.B xdoes not alter the archive file.  Normally the last-modified date of eachextracted file is the date when it is extracted. However, if.B ois used, the last-modifieddate is reset to the date recorded in thearchive..PPThe following optional characters can be used in conjunction withthe \fIkey\fR characters:.IP a 5 Tells the .PN arcommand that new files should be placed after.I posname..IP bTells the .PN arcommand that new files should be placed before.I posname..IP cSuppresses themessage that is normally produced when.I afileis created..IP iTells the .PN arcommand that new files should be placed before.I posname..IP l Places 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..IP oResets the last-modified date to the date recorded in the archive.Normally the last-modified date is the date when the file was extracted..IP uReplaces only those files with last-modified dates later than thearchive files. See the .B r.I key character..IP v Gives a file-by-filedescription of the making of anew archive file from the old archive and the constituent files.When used with the \fBt\fR option,it gives a long listing of all information about the files.When used withthe \fBp\fR option,it precedes each file with a name..SH Restrictions.NXR "ar program" "restricted"The .PN arcommand truncates the filenames to 15 characters..PPIf the same file is mentioned twice in an argument list,it may be put in the archive twice..PPThe last-modified date of a file is not altered by the.B ooption if the user is not the owner of the extracted file or a super-user..SH Files/tmp/v*	temporaries.SH See Alsold(1), lorder(1), ranlib(1), ar(5), arcv(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?