document.writeln('');

国产精品最大AV站在线观看,a级黄毛片试看三分钟,AV无码A片高潮AV,国产午夜精品一区二区三区,久久爆乳不卡一区,日本三级欧美三级,日韩精品AV一二三区在线,高H短篇小说抽插

當前位置:首頁 > 免費源碼 > 解決CentOS上解壓含有中文名的ZIP壓縮文件出現(xiàn)亂碼的問題

解決CentOS上解壓含有中文名的ZIP壓縮文件出現(xiàn)亂碼的問題

游戲科技網(wǎng)2026年09月15日 07:33免費源碼90

方法一: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解壓壓縮包

  1. 先用“7z x xxx.zip”解壓你的zip文件,然后把有亂碼的文件和文件夾移動到另外一個文件夾ABC
  2. 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>
unarxxx.zip
內(nèi)容看完了