Red Hat ENTERPRISE LINUX 4 - USING BINUTILS Uživatelský manuál Strana 11

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 80
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 10
Chapter 2. ar 5
If there is more than one file with the same name (say, fie) in an archive (say b.a), ar t b.a
fie lists only the first instance; to see them all, you must ask for a complete listing--in our
example, ar t b.a.
x
Extract members (named member) from the archive. You can use the v modifier with this opera-
tion, to request that ar list each name as it extracts it.
If you do not specify a member, all files in the archive are extracted.
A number of modifiers (mod) may immediately follow the p keyletter, to specify variations on an
operation’s behavior:
a
Add new files after an existing member of the archive. If you use the modifier a, the name
of an existing archive member must be present as the relpos argument, before the archive
specification.
b
Add new files before an existing member of the archive. If you use the modifier b, the name
of an existing archive member must be present as the relpos argument, before the archive
specification. (same as i).
c
Create the archive. The specified archive is always created if it did not exist, when you request
an update. But a warning is issued unless you specify in advance that you expect to create it, by
using this modifier.
f
Truncate names in the archive. gnu ar will normally permit file names of any length. This will
cause it to create archives which are not compatible with the native ar program on some systems.
If this is a concern, the f modifier may be used to truncate file names when putting them in the
archive.
i
Insert new files before an existing member of the archive. If you use the modifier i, the name
of an existing archive member must be present as the relpos argument, before the archive
specification. (same as b).
l
This modifier is accepted but not used.
N
Uses the count parameter. This is used if there are multiple entries in the archive with the same
name. Extract or delete instance count of the given name from the archive.
o
Preserve the original dates of members when extracting them. If you do not specify this modifier,
files extracted from the archive are stamped with the time of extraction.
P
Use the full path name when matching names in the archive. gnu ar can not create an archive
with a full path name (such archives are not POSIX complaint), but other archive creators can.
Zobrazit stránku 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 79 80

Komentáře k této Příručce

Žádné komentáře