博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux extract rar files
阅读量:6557 次
发布时间:2019-06-24

本文共 1377 字,大约阅读时间需要 4 分钟。

Extract rar-archives

If you need to extract rar files in Linux, you have to download and install unrar from rarlabs.com. You can accomplish that by making use of the following methods:

Method 1: Automated Installation

 

$ apt-get install unrar

 

Method 2: Manual Installation

 

$ cd /tmp$ wget http://www.rarlab.com/rar/rarlinux-3.9.3.tar.gz$ tar -zxvf rarlinux-3.9.3.tar.gz$ cd rar$ ./unrar$ cp rar unrar /bin

 

After you installed it, you can use it like that:

Extract archive:

 

$ unrar e The.Wind.That.Shakes.the.Barley.part1.rar

 

 

Extract archive with full directory paths:

 

$ unrar x file.rar

 

List archive:

$ unrar l file.rar

 

 

Test archive:

$ unrar t file.rar

 

Create rar-archives

In order to create a rar-archive and specify which files should be included, use the following command line (archive-name will be test.rar):
rar a test.rar thisismyfile.txt
You might want to append the best compression (m1=no compression ; m5=best compression):
rar a test.rar -m5 thisismyfile.txt
If you also would like to password protect your files + filenames, use the following line (The password of the file will be: [password] ):
rar a -m5 -hp[password] test.rar thisismyfile.txt
If you’d also like to split your archive at a specified filesize, use the following line (which splits the archive as soon it reaches a size of 2000 MegaBytes):
rar a -m5 -hp[password] -v2000M test.rar thisismyfile.txt

转载地址:http://ubqco.baihongyu.com/

你可能感兴趣的文章
spring系统教程收集
查看>>
Xcode 常用编译选项设置
查看>>
【转】 Servlet多线程安全问题
查看>>
Yii2学习之DAO和Query
查看>>
解决mysql“Access denied for user 'root'@'localhost'”
查看>>
Servlet与JSP的内置 对象
查看>>
Jboss 中添加Oracle 的XA 数据源支持
查看>>
HDFS的运行原理
查看>>
如何简单快速调试高大上的谷歌浏览器
查看>>
使用自定义域名访问本机应用
查看>>
js和jq默认选中select的值
查看>>
阅读JDK8 HashSet源码应该了解什么
查看>>
c#中闭包的实现方法
查看>>
spring 技术内幕阅读笔记 - spring 事务处理
查看>>
HTML表单和组件
查看>>
关于乱码问题的解决与HttpServletResponse中的方法
查看>>
换工作了,又装了一边arch
查看>>
栈的压入弹出序列
查看>>
java工作流引擎证照库类型的流程设计 实现方案与演示案例
查看>>
软件开发类面试官想知道的几个问题
查看>>