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 compress and decompress .rar file under linux

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

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to compress and decompress .rar files under linux. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

First, decompress the problem.

When downloading things on the Internet, I often encounter files with the .rar suffix. I can't extract them with tar. I can't find them on the Internet. I haven't found any suitable tools to compress and decompress the files with the .rar suffix, and now I've found it.

Second, rar and unrar installation

Wget http://www.rarlab.com/rar/rarlinux-3.9.2.tar.gztar zxvf rarlinux-3.9.2.tar.gzcd rarmake & & make install # is unzipped and installed. It's just an examination document [root@BlackGhost rar] # make & & make installmkdir-p / usr/local/binmkdir-p / usr/local/libcp rar unrar / usr/local/bincp rarfiles.lst / etccp default.sfx / usr/local/libmkdir-p / usr/local/binmkdir-p / usr/local/libcp rar unrar / usr/local/bincp rarfiles.lst / etccp default.sfx / usr/local/lib

Third, examples of rar and unrar commands

1), an example of rar

[root@BlackGhost test] # rar a url.rar url.txtRAR 3.92 Copyright (c) 1993-2010 Alexander Roshal 10 Feb 2010Shareware version Type RAR -? For helpEvaluation copy. Please register.Creating archive url.rarAdding url.txt OKDone

2), the example of unrar

[root@BlackGhost test] # unrar x url.rarUNRAR 3.90 freeware Copyright (c) 1993-2009 Alexander RoshalExtracting from url.rarurl.txt already exists. Overwrite it? [Y] es, [N] o, [A] ll, n [E] ver, [R] ename, [Q] uit yExtracting url.txt OKAll OK about how to compress and decompress .rar files under linux. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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