欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

阿里云解压zip linux,Linux 下解压rar压缩包

最编程 2024-08-15 14:08:45
...

Linux本身不支持unrar和rar命令,需要我们安装RAR for Linux

下载rar 软件

[root@localhost ~]# wget https://www.rarlab.com/rar/rarlinux-x64-5.9.0.tar.gz

984cd10d39dbb00cce5280d3bf14a9ce.png

2.安装

[root@iZf8ze76gcpdjr5dtx1l53Z ~]# tar xf rarlinux-x64-5.9.0.tar.gz

[root@iZf8ze76gcpdjr5dtx1l53Z ~]# cd rar/

[root@iZf8ze76gcpdjr5dtx1l53Z rar]# ls

acknow.txt   license.txt  order.htm  rarfiles.lst  readme.txt  whatsnew.txt

default.sfx  makefile     rar        rar.txt       unrar

[root@iZf8ze76gcpdjr5dtx1l53Z rar]# make && make install

3.压缩和解压用法

压缩:rar a [不含.rar后缀的压缩包名字] [需要压缩的文件或者文件夹]

解压:rar x [rar的压缩包]

3.解压例子

#压缩

[root@iZf8ze76gcpdjr5dtx1l53Z ~]# rar a tmp.rar  /tmp

5cb0e4ea39b2c92832029d69207840c9.png

#解压

[root@iZf8ze76gcpdjr5dtx1l53Z ~]# rar x tmp.rar

736d3b1aaebce7d9e77d9742eca34b2d.png