linux的rar安装与使用
32位系统:wget http://www.rarsoft.com/rar/rarlinux-5.0.1.tar.gz
64位系统:wget http://www.rarsoft.com/rar/rarlinux-x64-5.0.1.tar.gz
也可以访问链接下载后上传到linux
tar zxvf rarlinux-5.0.1.tar.gz
cd rar
sudo su
sudo make && make install
如果64位系统错误的安装32位的则会报错
-bash: /usr/local/bin/rar: No such file or directory
make && make install
cp: cannot create regular file '/usr/local/bin/rar': Permission denied
cp: cannot create regular file '/usr/local/bin/unrar': Permission denied
sudo make && make install
cp: cannot create regular file '/usr/local/bin/rar': Permission denied
cp: cannot create regular file '/usr/local/bin/unrar': Permission denied
压缩:
rar a -r qq.rar qq/
(递归)将qq/下所有文件压缩为qq.rar
解压:
rar e imagenet2015.part01.rar