解决CentOS上解压含有中文名的ZIP压缩文件呈现乱码的问题

方法一:p7zip

1、解决装配p7zip <span class="hljs-attribute">yum</span> install -y p7zip* <span class="hljs-attribute">yum</span> install -y p7zip* yum install -y p7zip* 2、上解装完之后,压含有中压缩云服务器包年不关机有费用吗安全吗通过下列命令查看该包提供了哪些命令: <span class="hljs-attribute">rpm</span> -qa |grep p7zip |xargs rpm -ql <span class="hljs-attribute">rpm</span> -qa |grep p7zip |xargs rpm -ql rpm -qa |grep p7zip |xargs rpm -ql 3、文名文件装配convmv <span class="hljs-attribute">yum</span> -y install convmv <span class="hljs-attribute">yum</span> -y install convmv yum -y install convmv 4、的问用p7zip解压压缩包 先用“7z x xxx.zip”解压你的呈现zip文件,然后把有乱码的乱码文件和文件夹挪动到另外一个文件夹ABC cd到ABC目录,在shell里面键入命令“convmv -r -f utf8 -t iso88591 * --notest --nosmart && convmv -r -f gbk -t utf8 * --notest --nosmart” 阐释

本方法在Centos7上测试正常使用。解决

方法二:unar

1、上解云服务器包年不关机有费用吗安全吗装配unar <span class="hljs-attribute">yum</span> install unar <span class="hljs-attribute">yum</span> install unar yum install unar

(移除:# yum -y remove unar)

2、压含有中压缩提交至Centos中的文名文件.ZIP文件所在的目录下

然后,输入shell命令:

的问<span class="hljs-selector-tag">unar</span><span class="hljs-selector-tag">xxx</span><span class="hljs-selector-class">.zip</span> <span class="hljs-selector-tag">unar</span> <span class="hljs-selector-tag">xxx</span><span class="hljs-selector-class">.zip</span> unar xxx.zip 内容看完了
皖ICP备2025077989号-141