mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 22:24:55 +02:00
Merge pull request #516 from eddieantonio/page/ar
ar: add examples and clean-up
This commit is contained in:
commit
641ac387c9
1 changed files with 16 additions and 4 deletions
|
@ -2,10 +2,22 @@
|
|||
|
||||
> Create, modify, and extract from archives (.a .so .o)
|
||||
|
||||
- Extract members of the archive
|
||||
- Extract all members from an archive
|
||||
|
||||
`ar -x libfoo.a`
|
||||
`ar -x {{libfoo.a}}`
|
||||
|
||||
- List the content (files) of libfoo.a
|
||||
- List the members of an archive
|
||||
|
||||
`ar -t libfoo.a`
|
||||
`ar -t {{libfoo.a}}`
|
||||
|
||||
- Replace or add files to an archive
|
||||
|
||||
`ar -r {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`
|
||||
|
||||
- Insert an object file index (equivalent to using `ranlib`)
|
||||
|
||||
`ar -s {{libfoo.a}}`
|
||||
|
||||
- Create an archive with files and an accompanying object file index
|
||||
|
||||
`ar -rs {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue