Skip to content

Commit bb258aa

Browse files
lonlngjaywcjlove
authored andcommitted
Add unrar.md (jaywcjlove#126)
* Create unrar * Update unrar * Update unrar * Update unrar * Rename unrar to unrar.md * Update unrar.md * 添加并修改unrar命令 * Update unrar.md * Update unrar.md
1 parent 9f422c0 commit bb258aa

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

‎command/unrar.md‎

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
unrar
2+
===
3+
4+
解压rar文件命令,从rar档案中提取文件
5+
6+
### 语法
7+
8+
```shell
9+
unrar [选项][switch 命令] [文件名...][路径]
10+
unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]
11+
```
12+
13+
### 选项
14+
15+
```shell
16+
- e #将文件解压缩到当前目录。
17+
-l # 列出存档内容。
18+
-p #将文件打印到标准输出。
19+
-t #测试存档文件。
20+
-v #详细列出存档。
21+
-x #使用完整路径提取文件。
22+
```
23+
24+
### SWITCHES 开关设置
25+
26+
```shell
27+
注意:每个开关必须用空格分隔。你不能把它们放在一起。
28+
-av- #禁用真实性验证检查。
29+
-c- #禁用评论显示
30+
-f #刷新文件
31+
-kb #保留破碎的提取文件
32+
-ierr #将所有消息发送给stderr。
33+
-inul #禁用所有消息。
34+
-o+ #覆盖现有文件。
35+
-o- #不要覆盖现有文件
36+
-p<password>
37+
#设置密码。
38+
-p- #不查询密码
39+
-r #递归子目录。
40+
-u #更新文件。
41+
-v #列出所有卷。
42+
-x<file>
43+
#排除指定的文件。
44+
-x@<list>
45+
#排除指定列表文件中的文件。
46+
-x@ #读取要从stdin中排除的文件名。
47+
-y #对所有查询都假设为是。
48+
```
49+
50+
### 参数
51+
目录:指定要显示列表的目录,也可以是具体的文件。
52+
### 实例
53+
54+
将压缩文件text.rar在当前目录下解压缩,并解压完整路径。
55+
56+
```shell
57+
unrar x test.rar
58+
```
59+
60+
### AUTHOR
61+
62+
```shell
63+
This manual page was written by Petr Cech <cech@debian.org> according to "unrar -h"for the Debian
64+
GNU/Linux system (but may be used by others).
65+
```

0 commit comments

Comments
 (0)