Files
tldr/pages.zh/common/ar.md
2024-01-01 10:38:53 +01:00

25 lines
539 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ar
> 创建,修改,提取库文件(`.a`, `.so`, `.o`)。
> 更多信息:<https://manned.org/ar>.
- 从库文件中提取全部成员:
`ar x {{a 文件}}`
- 列出库文件中的成员:
`ar t {{a 文件}}`
- 替换或添加文件到库文件:
`ar r {{要被添加内容的 a 文件}} {{o 文件1 o 文件2 o 文件3 ...}}`
- 插入对象文件索引(相当于使用`ranlib`
`ar s {{a 文件}}`
- 使用文件和附带的目标文件索引创建存档:
`ar rs {{a 文件}} {{o 文件1 o 文件2 ...}}`