File tree Expand file tree Collapse file tree 1 file changed +45
-1
lines changed
Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ ab(选项)(参数)
1515
1616### 选项
1717
18- 指令参数
18+ 必要参数
1919
2020```
2121-d 删除备存文件中的成员文件。
@@ -43,5 +43,49 @@ v 程序执行时显示详细的信息。
4343V 显示版本信息。
4444```
4545
46+ ### 实例
47+
48+ 打包文件
49+
50+ ```
51+ [root@localhost ~]# ls //显示当前目录文件
52+ a.c b.c d.c install.log qte
53+ anaconda-ks.cfg c.c Desktop
54+
55+ [root@localhost ~]# ar rv one.bak a.c b.c //打包 a.c b.c文件
56+ ar: 正在创建 one.bak
57+ a - a.c
58+ a - b.c
59+ ```
60+
61+ 打包多个文件
62+
63+ ```
64+ [root@localhost ~]# ar rv two.bak *.c //打包以.c结尾的文件
65+ ar: 正在创建 two.bak
66+ a - a.c
67+ a - b.c
68+ a - c.c
69+ a - d.c
70+ ```
71+
72+ 显示打包文件的内容
73+
74+ ```
75+ [root@localhost ~]# ar t two.bak
76+ a.c
77+ b.c
78+ c.c
79+ d.c
80+ ```
81+
82+ 删除打包文件的成员文件
83+
84+ ```
85+ [root@localhost ~]# ar d two.bak a.c b.c c.c
86+ [root@localhost ~]# ar t two.bak
87+ d.c
88+ ```
89+
4690
4791<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
You can’t perform that action at this time.
0 commit comments