Clever Geek Handbook
📜 ⬆️ ⬇️

ar (Unix)

ar is a standard Unix utility , an archiver that does not use data compression .

Currently, ar is mainly used to create and update static libraries that are used by linkers , and for any other purposes, tar is usually used instead (although ar can be used to create archives of any content and purpose, for the most part it has been superseded by the tar utility) .

The implementation of the ar utility from the GNU project is part of the GNU Binutils package .

Use

  • ar [-] {dmpqrtx} [abcilosuvV] [archive_component_name] archive-files ...

ar can not only create / extract files from the archive , but also modify them.

The contents of the original file, access rights, time, owner and group are stored in the archive and can be redefined during extraction.

Launch Options

dRemoves modules from the archive.
mMoves files (moves to end of archive)
pOutput specified archive components to standard output.
qAdds files to the end of the archive, without checking for substitution
rInserts files into the archive (with replacement)
tShows a table in which the contents of the archive are stored, or files that were specified as a parameter and are present in the archive
xExtracts components (data as files) from archive
aAdd new files after one of the existing components in the archive
bAdd new files in front of one of the existing components in the archive
cCreate archive
fTrims archive names for compatibility with other operating systems
iInsert new files before one of the components existing in the archive
oRestores the original date of archive components when they are retrieved
sWrites the index of the object file to the archive or, if it exists, updates it, even if there are no other changes in the archive
uWhen replacing files, insert only those that differ from those already in the archive
vTurns on the details display mode when performing an operation.
VShows ar version

Links

  • ar(1) - man help page for FreeBSD user commands
Source - https://ru.wikipedia.org/w/index.php?title=Ar_(Unix)&oldid=92006179


More articles:

  • Additive color mixing
  • Blue Division
  • Photographic Shutter
  • Gazyr
  • Cimarosa, Domenico
  • Appeal (Linguistics)
  • Kovalenko, Evgenia Sergeevna
  • World Chess Championship 2007
  • whatis - wikipedia
  • Capetus

All articles

Clever Geek | 2019