一、下载并安装rar软件
1、下载
[root@localhost ~]# wget /rar/rarlinux-x64-5.9.
2、安装
[root@localhost ~]# tar xf rarlinux-x64-5.9.
[root@localhost ~]# cd rar/
[root@localhost rar]# make && make install
二、压缩和解压用法
1、压缩:rar a [不含.rar后缀的压缩包名字] [需要压缩的文件或者文件夹]
2、解压:rar x [rar的压缩包]
三、具体例子
实例:将/tmp目录压缩为
[root@localhost ~]# rar a /tmp
将 解压
[root@localhost ~]# rar x
四、rar更多命令,查看帮助
[root@localhost ~]# rar