IT袋

当前位置:主页 > 经验教程 > 系统教程 >

linuxrar解压命令是什么

linuxrar解压命令是什么 linux解压rar文件到指定目录(2)

时间:2023-10-22 12:41:24 来源:IT袋 作者:苏晓敏
导读:linuxrar解压命令是什么,abc.pcap (666 B)… OK. aaa.pdf (60957 B)… OK. Successfully extracted to test. Linux使用unar解压RAR压缩包 检查: [root@zcwyou rar]# ll total 56 drwxr-xr-x. 2 root root 37 Nov 30 15:14 test

linuxrar解压命令是什么

abc.pcap (666 B)… OK.

aaa.pdf (60957 B)… OK.

Successfully extracted to “test”.

linuxrar解压命令是什么

Linux使用unar解压RAR压缩包

检查:

[root@zcwyou rar]# ll

total 56

drwxr-xr-x. 2 root root 37 Nov 30 15:14 test

-rw-r–r–. 1 root root 54364 Nov 30 12:00 test.rar

发现多了一个目录test

查看目录test里面的内容

[root@zcwyou rar]# ll test

total 64

-rw-r–r–. 1 root root 60957 Aug 3 15:32 aaa.pdf

-rw-r–r–. 1 root root 666 Aug 3 15:32 abc.pcap

可以看到,文件已经解压出来了。

试试再解压一次:

[root@zcwyou rar]# unar test.rar

test.rar: RAR 5

“test” already exists.

(r)ename to “test-1”, (R)ename all, (o)verwrite, (O)verwrite all, (s)kip, (S)kip all, (q)uit?

提示文件已经存在:

输入r重命名解压文件

输入R重命名所有解压文件

输入o表示覆盖当前文件

输入O表示覆盖所有文件

输入s表示跳过当前文件

输入S表示跳过所有文件。

输入q表示退出本程序。

4. 文件名乱码的处理

如果解压后发现文件名乱码,试试以下命令:

[root@zcwyou rar]# unar -e UTF-8 test.rar

即文件名使用utf-8编码,使用命令查询支持的编码格式unar -e list。

如果还是乱码,试试使用gb18030

[root@zcwyou rar]# unar -e gb18030 test.rar

即文件名使用gb18030编码

linuxrar解压命令是什么

Linux解压时乱码的解决办法

5. 解压加密rar文件

假设有一个加密的压缩文件test2.rar,解密的密码为linux.zcwyou.com

[root@zcwyou rar]# unar -password linux.zcwyou.com test2.rar

test2.rar: RAR 5

apply.pdf (53980 B)… OK.

trans.pdf (54299 B)… OK.

Successfully extracted to “test2”.

验证:

假设解压出来的目录名为test2

[root@zcwyou rar]# ll test2

total 112

-rw-r–r–. 1 root root 53980 Sep 25 13:44 apply.pdf

-rw-r–r–. 1 root root 54299 Sep 25 13:44 trans.pdf

表明解压成功。

linuxrar解压命令是什么

以上就是IT袋带来的linuxrar解压命令是什么 跟 linux解压rar文件到指定目录的全部内容,您了解了吗?

相关阅读