Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of linux decompressing rar garbled code

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to solve the problem of linux decompressing rar garbled code", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to solve the problem of linux decompression rar garbled"!

Linux decompression rar garbled solutions: 1, install RAR for Linux;2, open the command window; 3, through the unrar decompression program for decompression.

This article operating environment: linux5.9.8 system, Dell G3 computer.

How to solve the problem of linux decompressing rar garbled code?

Decompress rar,zip garbled codes under linux:

For the common compressed files .zip and .rar under Window, Linux also has methods to extract them:

1: for .zip

Zip and unzip programs are provided under linux. Zip is the compression program and unzip is the decompression program. There are many options for their parameters. Here is only a brief introduction to them, with examples to illustrate their usage:

# zip all.zip * .jpg (this command compresses all .jpg files into a zip package) # unzip all.zip (this command unzips all files in all.zip)

Decompress ZIP files with garbled codes

Unzip-O GBK mycpmpressfile.zip-d filename (you can also use CP936, GB18030,-d to specify the path to decompress)

2: for .rar

To process .rar files under linux, you need to install RAR for Linux, which you can download from the Internet, but remember, RAR for Linux is not free; you can download RAR 3 from http://www.rarsoft.com/download.htm. 60 for Linux, and then install it as follows:

# tar-xzpvf rarlinux-3.2.0.tar.gz# cd rar# make

After installation, there are two programs: rar and unrar. Rar is the compression program and unrar is the decompression program. They have a lot of parameter options, so give an example to illustrate their usage.

# rar an all * .jpg

This command compresses all .jpg files into a rar package called all.rar, which automatically appends the .rar extension to the package name.

# unrar x all.rar

This command unzips all the files in all.rar.

Ps:

3. For .tar.gz and .tgz

Decompress: tar xzvf all * .tar.gz-C filepath

Compression: tar czvf all * .tar.gz DirName

4. For .tar.bz

Decompress: tar xjvf FileName.tar.bz

At this point, I believe you have a deeper understanding of "how to solve the problem of linux decompressing rar garbled". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report