Linux下使用unrar解压RAR包

一.下载地址:
http://www.rpmfind.net/linux/rpm2html/search.php?query=unrar

二.安装:

[root@centos sybaseiq]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@centos sybaseiq]# uname -r
2.6.18-164.el5
[root@centos sybaseiq]# rpm -ivh unrar-3.9.4-1.el5.rf.i386.rpm

三.帮助:
[root@centos lib]# unrar

UNRAR 3.90 beta 3 freeware      Copyright (c) 1993-2009 Alexander Roshal

Usage:     unrar - -
              


  e             Extract files to current directory
  l[t,b]        List archive [technical, bare]
  p             Print file to stdout
  t             Test archive files
  v[t,b]        Verbosely list archive [technical,bare]
  x             Extract files with full path


  -             Stop switches scanning
  ad            Append archive name to destination path
  ai            Ignore file attributes
  ap      Set path inside archive
  c-            Disable comments show
  cfg-          Disable read configuration
  cl            Convert names to lower case
  cu            Convert names to upper case
  dh            Open shared files
  ep            Exclude paths from names
  ep3           Expand paths to full including the drive letter
  f             Freshen files
  id[c,d,p,q]   Disable messages
  ierr          Send all messages to stderr
  inul          Disable all messages
  kb            Keep broken extracted files
  n       Include only specified file
  n@            Read file names to include from stdin
  n@>      Include files listed in specified list file
  o[+|-]        Set the overwrite mode
  or            Rename files automatically
  ow            Save or restore file owner and group
  p[password]   Set password
  p-            Do not query password
  r             Recurse subdirectories
  sl      Process files with size less than specified
  sm      Process files with size more than specified
  ta      Process files modified after in YYYYMMDDHHMMSS format
  tb      Process files modified before in YYYYMMDDHHMMSS format
  tn      Process files newer than
  to      Process files older than
  ts[N]  Save or restore file time (modification, creation, access)
  u             Update files
  v             List all volumes
  ver[n]        File version control
  vp            Pause before each volume
  x       Exclude specified file
  x@            Read file names to exclude from stdin
 

四.例子:

1.查看rar包中的内容:
#unrar l *.rar
或者
#unrar v *.rar

2.测试rar包是否能解压成功:
#unrar t *.rar

3.解压到当前文件夹:
#unrar e *.rar

4.解压到指定文件夹:
#unrar x *.rar /tmp

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-627342/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23135684/viewspace-627342/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值