Linux RAR 安装和使用
描述:Linux默认自带ZIP压缩,最大支持4GB压缩,RAR的压缩比大于4GB.
流程:下载》安装》使用
--------------------------------------------------下载
#wgethttp://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
--16:01:50--http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz
Resolvingwww.rarsoft.com...217.70.129.242
Connectingtowww.rarsoft.com|217.70.129.242|:80...connected.
HTTPrequestsent,awaitingresponse...200OK
Length:833828(814K)[application/x-gzip]
Savingto:`rarlinux-3.9.3.tar.gz'
100%[=======================================>]833,82834.5K/sin29s
16:02:22(28.2KB/s)-`rarlinux-3.9.3.tar.gz'saved[833828/833828]
--------------------------------------------------查看目录列表
#ls
rarlinux-3.9.3.tar.gz
--------------------------------------------------解压tar.gz
#tar-xzvfrarlinux-3.9.3.tar.gz
rar/
rar/readme.txt
rar/default.sfx
rar/whatsnew.txt
rar/license.txt
rar/order.htm
rar/rar
rar/unrar
rar/rar_static
rar/technote.txt
rar/rarfiles.lst
rar/makefile
rar/rar.txt
--------------------------------------------------查看目录列表
#ls
rar
rarlinux-3.9.3.tar.gz
--------------------------------------------------切换目录
#cdrar
--------------------------------------------------编译文件
#make
mkdir-p/usr/local/bin
mkdir-p/usr/local/lib
cprarunrar/usr/local/bin
cprarfiles.lst/etc
cpdefault.sfx/usr/local/lib
--------------------------------------------------安装编译文件
#makeinstall
mkdir-p/usr/local/bin
mkdir-p/usr/local/lib
cprarunrar/usr/local/bin
cprarfiles.lst/etc
cpdefault.sfx/usr/local/lib
--------------------------------------------------执行rar帮助命令
#rar--help
rar:/lib/libc.so.6:version`GLIBC_2.7'notfound(requiredbyrar)
--------------------------------------------------添加全局命令
#cp-frar_static/usr/local/bin/rar
cp:overwrite`/usr/local/bin/rar'?y
--------------------------------------------------即可访问rar命令
#rar--help
RAR3.93Copyright(c)1993-2010AlexanderRoshal15Mar2010
SharewareversionTypeRAR-?forhelp
Usage:rar<command>-<switch1>-<switchN><archive><files...>
<@listfiles...><path_to_extract\>
<Commands>
xExtractfileswithfullpath
--------------------------------------------------解压所有文件包括路径
#rarxfilename.rar