网上下载rar 压缩文件的使用,在linux在我们需要对其进行解压缩,这个时候,我们需要安装 rar相关的文件,来进行解压缩。

1. 下载

我们进入rarlab网站,进行下载rar for linux x64

2. 使用 tar 命令 解压 (*.tar 用 tar –xvf )

Downloads tar -xvf rarlinux-x64-5.6.0.tar.gz

3. 进入文件夹make (需要 管理员权限)

rar cat makefile

###################################################################

# Installing RAR executables, configuration files and SFX modules #

# to appropriate directories #

###################################################################

PREFIX=/usr/local

install:

mkdir -p $(PREFIX)/bin

mkdir -p $(PREFIX)/lib

cp rar unrar $(PREFIX)/bin

cp rarfiles.lst /etc

cp default.sfx $(PREFIX)/lib%

如果不进行make 需要在命令所在的文件夹执行命令,或者把文件夹加入环境变量中。

3. 最后,可以使用 unrar 进行解压, 使用 rar 命令,进行压缩。

~ unrar x [file]

我们 可以直接输入 unrar 查看帮助

rar ./unrar

UNRAR 5.60 freeware Copyright (c) 1993-2018 Alexander Roshal

Usage: unrar - -

e Extract files without archived paths

l[t[a],b] List archive contents [technical[all], bare]

p Print file to stdout

t Test archive files

v[t[a],b] Verbosely list archive contents [technical[all],bare]

x Extract files with full path

- Stop switches scanning

@[+] Disable [enable] file lists

ad Append archive name to destination path

ag[format] Generate archive name using the current date

ai Ignore file attributes

ap Set path inside archive

c- Disable comments show

cfg- Disable read configuration

cl Convert names to lower case

cu Convert names to upper case

dh Open shared files

ep Exclude paths from names

ep3 Expand paths to full including the drive letter

f Freshen files

id[c,d,p,q] Disable messages

ierr Send all messages to stderr

inul Disable all messages

kb Keep broken extracted files

n Additionally filter included files

n@ Read additional filter masks from stdin

n@ Read additional filter masks from list file

o[+|-] Set the overwrite mode

ol[a] Process symbolic links as the link [absolute paths]

or Rename files automatically

ow Save or restore file owner and group

p[password] Set password

p- Do not query password

r Recurse subdirectories

sc[obj] Specify the character set

sl Process files with size less than specified

sm Process files with size more than specified

ta Process files modified after in YYYYMMDDHHMMSS format

tb Process files modified before in YYYYMMDDHHMMSS format

tn Process files newer than

to Process files older than

ts[m|c|a] Save or restore file time (modification, creation, access)

u Update files

v List all volumes

ver[n] File version control

vp Pause before each volume

x Exclude specified file

x@ Read file names to exclude from stdin

x@ Exclude files listed in specified list file

y Assume Yes on all queries

其他解压缩命令:

1、*.tar 用 tar –xvf 解压

2、*.gz 用 gzip -d或者gunzip 解压

3、*.tar.gz和*.tgz 用 tar –xzf 解压

4、*.bz2 用 bzip2 -d或者用bunzip2 解压

5、*.tar.bz2用tar –xjf 解压

6、*.Z 用 uncompress 解压

7、*.tar.Z 用tar –xZf 解压

8、*.rar 用 unrar e解压

9、*.zip 用 unzip 解压

总结

以上所述是小编给大家介绍的Linux 下解压 rar 文件的方法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对免费资源网网站的支持!

用tar给linux .rar解压,Linux 下解压 rar 文件的方法相关推荐

  1. 嵌入式linux详解,嵌入式Linux详解

    嵌入式Linux详解 嵌入式培训就是嵌入式系统相关技术的培训.嵌入式系统说白了就是硬件和软件相结合,嵌入到整机里使整机实现智能化的一个系统.下面是小编整理的关于嵌入式Linux详解,希望大家认真了解! ...

  2. Linux服务器上挂载window本地iso镜像文件的方法。

    mount //10.7.21.25/linux -o username=Administrator,password=H@nD0ng /mnt/ 10.7.21.25是window的地址 Linux ...

  3. linux环境没有bzip2,Linux系统中安装使用Bzip2来压缩文件的方法讲解

    安装 Bzip2命令如下: 复制代码 代码如下: make -f Makefile-libbz2_so && make && make install &&am ...

  4. linux bzip2压缩文件,Linux系统中安装使用Bzip2来压缩文件的方法讲解

    安装 Bzip2命令如下: 复制代码代码如下: make -f Makefile-libbz2_so && make && make install && ...

  5. Linux和Windows的遍历目录下所有文件的方法对比

    首先两者读取所有文件的方法都是采用迭代的方式,首先用函数A的返回值判断目录下是否有文件,然后返回值合法则在循环中用函数B直到函数B的返回值不合法为止.最后用函数C释放资源. 1.打开目录 #inclu ...

  6. 在Windows环境下使用与Linux/Unix操作相关的C/C++头文件的方法(以TDM-GCC和CLion为例)

    前言 很多时候我们需要在Windows环境中写与Linux/Unix相关的C/C++代码,而Linux/Unix相关的头文件在Windows中是缺失的,这就导致IDE的文本纠错等功能无法正常使用带来很 ...

  7. linux查找出全部doc文件,linux 查找出包含某个字符串的所有文件的方法详解

    一.find查找用法 find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expres ...

  8. linux 查找出包含某个字符串的所有文件的方法详解

    一.find查找用法 find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expres ...

  9. Linux下使用rsync最快速删除海量文件的方法

    遇到了要在Linux下删除海量文件的情况,需要删除数十万个文件.这个是之前的程序写的日志,增长很快,而且没什么用.这个时候,我们常用的删除命令rm -fr * 就不好用了,因为要等待的时间太长.所以必 ...

  10. linux rsync删文件速度,Linux下使用rsync最快速删除大量文件的方法

    要在Linux下删除海量文件的情况,需要删除三层哈希目录下的几十万个文件.这个时候,删除命令rm -rf * 就不好用了,因为要等待的时间太长.所以必须要采取一些非常手段.我们可以使用rsync来实现 ...

最新文章

  1. define##的作用
  2. mysql complete_mysql 无意重启 [Note] /usr/sbin/mysqld: Normal shutdown
  3. 【转】北京四中学习方法
  4. 机器学习:数据驱动的科学
  5. 为什么工业控制系统需要安全防护?
  6. java数字图像处理开题报告,数字图像处理开题报告.doc
  7. java反射field和method的顺序问题
  8. golang 读取 文件指定行内容
  9. python股票自动交易从零开始-python程序化交易编程-python制作自动交易程序!
  10. UWP入门(八)--几个简单的控件
  11. //BASE64解码成File文件
  12. makefile 常用命令
  13. tensorflow随笔-队列管理器QueueRunner-生产者与消费者
  14. 【JAVA并发编程实战】1、对象的共享
  15. 美团扫码付的前端可用性保障实践
  16. mysql 交叉表行转列_Oracle行转列、列转行的Sql语句总结
  17. oracle rollup 排序,oracle分组函数之ROLLUP演示
  18. python3.8下载request_python3 requests 安装包下载安装[windows]
  19. 与矩阵的秩有关的结论
  20. 多项式的乘法满足结合律和交换律

热门文章

  1. 微软关闭Win7所有服务器,微软公布Win7彻底退役时间 将于2020年终止所有支持
  2. cesium模型爆炸案例
  3. 工程与建设杂志工程与建设杂志社工程与建设编辑部2022年第3期目录
  4. leetcode (Find All Numbers Disappeared in an Array)
  5. 面试技巧顶个P --leo谈应届生求职 2
  6. ACM-ICPC 2018 北京赛区网络预赛 Tomb Raider(暴力)
  7. Java实现:BMI标准体重计算器
  8. 没有NumLock键的小键盘误触变成方向键
  9. 杭州电子科技大学acm---2008
  10. 安装和使用openBMC官网维护的qemu