Linux zip file Extract garbled solution, ubuntu16.10 Pro test available

Source: Internet
Author: User

Article Source: https://www.zhihu.com/question/20523036

Today the message received a compressed file, extracted is garbled, from the Internet also found a few methods, the current method is still relatively reliable, as follows:

7z Solution

Need to install P7zip and CONVMV, the commands under Fedora are


‘yum install p7zip convmv‘

The installation command under Ubuntu is


sudo apt-get install p7zip convmv

After installation, you can complete the decompression task with the 7za and CONVMV two commands.


LANG=C 7za x your-zip-file.zipconvmv -f GBK -t utf8 --notest -r .

The first command is used for decompression, and Lang=c represents a us-ascii such as the output file name, if there is no language setting, it will also output garbled, but is the UTF8 format garbled (CONVMV will ignore such garbled).

The second command is to convert the GBK encoded file name to UTF8 encoding, and-R for recursive access to the directory, which translates all the files in the current directory.

Linux zip file Extract garbled solution, ubuntu16.10 Pro test available

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.