1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

ar: ar: add Chinese translation

This commit is contained in:
Starccy 2019-02-25 19:10:52 +08:00 committed by Agniva De Sarker
parent 321d7aabb6
commit dc13a4b7b8

23
pages.zh/common/ar.md Normal file
View file

@ -0,0 +1,23 @@
# ar
> 创建, 修改, 提取库文件 (.a, .so, .o).
- 从库文件中提取全部成员:
`ar -x {{libfoo.a}}`
- 列出库文件中的成员:
`ar -t {{libfoo.a}}`
- 替换或添加文件到库文件:
`ar -r {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`
- 插入对象文件索引(相当于使用`ranlib`):
`ar -s {{libfoo.a}}`
- 使用文件和附带的目标文件索引创建存档:
`ar -rs {{libfoo.a}} {{foo.o}} {{bar.o}} {{baz.o}}`