linux 下面压缩、解压.rar文件
一,解压问题
在网上下东西的时候,经常会遇到.rar后缀的文件,我用tar解压,解压不出,上网找啊找,一直没找到什么合适的工具来压缩和解压.rar后缀的文件,现在我找到了。
二,rar和unrar安装
wget http://www.xxx.com/rar/xxx-3.9.2.tar.gz tar zxvf xxx-3.9.2.tar.gz cd rar make && make install #解压之后,安装。其实就是考文件而已 [root@sql rar]# make && make install mkdir -p /usr/local/bin mkdir -p /usr/local/lib cp rar unrar /usr/local/bin cp xxx.lst /etc cp default.sfx /usr/local/lib mkdir -p /usr/local/bin mkdir -p /usr/local/lib cp rar unrar /usr/local/bin cp rarfiles.lst /etc cp default.sfx /usr/local/lib
三,rar和unrar命令的例子
1),rar的例子
[root a url.rar url.txt RAR 3.92 Copyright (c) 1993-2010 Alexander Roshal 10 Feb 2010 Shareware version Type RAR -? for help Evaluation copy. Please register. Creating archive url.rar Adding url.txt OK Done
2),unrar的例子
[root@sql]# unrar x url.rar UNRAR 3.90 freeware Copyright (c) 1993-2009 Alexander Roshal Extracting from url.rar url.txt already exists. Overwrite it ? [Y]es, [N]o, [A]ll, n[E]ver, [R]ename, [Q]uit y Extracting url.txt OK All OK
相关推荐
zmjzhangmj 2013-06-24
FruitDrop 2013-08-22
dguthai 2015-01-29
xiaobaichen 2015-07-16
heiworld 2015-05-21
wannagonna 2016-11-27
让梦想从这里起飞 2015-07-16
lonesomer 2015-01-29
liangjingfu 2013-06-24
展翅飞嵌入式之路 2012-10-09
pointfish 2011-05-20
taiyangshenniao 2020-04-18
hellvulture 2015-03-25
89231441 2017-07-19
liuyanwuyu 2017-07-19