Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4998975
  • 博文数量: 921
  • 博客积分: 16037
  • 博客等级: 上将
  • 技术积分: 8469
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-05 02:08
文章分类

全部博文(921)

文章存档

2020年(1)

2019年(3)

2018年(3)

2017年(6)

2016年(47)

2015年(72)

2014年(25)

2013年(72)

2012年(125)

2011年(182)

2010年(42)

2009年(14)

2008年(85)

2007年(89)

2006年(155)

分类: LINUX

2013-08-30 09:42:40

windows平台很多压缩文档为rar文件,那么怎么做到Linux解压rar文件(unrar安装和使用)?

简单,centos5安装unrar即可。 unrar安装方法如下:

wget  -Uvh unrar-3.6.8-1.el5.rf.i386.rpm;

复制上面的命令,在root下执行即可。

基本unrar用法unrar x -o- -y  CTOHome.com.rar   /home//  (把CTOHome.com.rar文件,解压到/home/目录。要注意解压目录必须以 / 结束

unrar分卷解压: 假设第一个分卷的文件名CTOHome.r00,所有分卷都在同一个目录。
那么就直接 unrar  x -o- -y CTOHome.r00      /home//

其他操作系统的unrar下载

unrar使用帮助

用法:     unrar <命令> -<开关 1> -<开关 N> <压缩文件> <文件...>
               <@列表文件...> <解压路径\>

<注释>
  e             解压压缩文件到当前目录
  l[t,b]        列出压缩文件[技术信息,简洁]
  p             打印文件到标准输出设备
  t             测试压缩文件
  v[t,b]        详细列出压缩文件[技术信息,简洁]
  x             用绝对路径解压文件

<开关>
  -             停止扫描
  ac            压缩或解压后清除存档属性
  ad            添加压缩文件名到目标路径
  ap<路径>      添加路径到压缩文件中
  av-           禁用用户身份校验
  c-            禁用注释显示
  cfg-          禁用读取配置
  cl            名称转换为小写
  cu            名称转换为大写
  dh            打开共享文件
  ep            从名称中排除路径
  ep3           扩展路径为包含盘符的完全路径
  f             刷新文件
  id[c,d,p,q]   禁止信息显示
  ierr          发送所有消息到标准错误设备
  inul          禁用所有消息
  ioff          完成一个操作后关闭 PC 电源
  kb            保留损坏的已解压文件
  n<文件>       仅包括指定文件
  n@            从标准输入设备读取要包括的文件名称
  n@<列表>      在指定列表文件包括文件
  o+            覆盖已存在文件
  o-            不覆盖已存在文件
  oc            设置 NTFS 压缩属性
  or            自动重命名文件
  ow            保存或恢复文件所有权和组
  [密码]        设置密码
  p-            不询问密码
  r             包含子目录
  ri

[:]   设置优先级 (0-默认,1-最小..15-最大) 和休眠时间(毫秒)
  sl<大小>      处理小于指定大小的文件
  sm<大小>      处理大于指定大小的文件
  ta<日期>      添加日期 <日期> 后修改的文件,日期格式 YYYYMMDDHHMMSS
  tb<日期>      添加日期 <日期> 前修改的文件,日期格式 YYYYMMDDHHMMSS
  tn<时间>      添加 <时间> 以后的文件
  to<时间>      添加 <时间> 以前的文件
  ts[N]  保存或恢复文件时间(修改,创建,访问)
  u             更新文件
  v             列出所有卷
  ver[n]        文件版本控制
  vp            每卷之前暂停
  x<文件>       排除指定的文件
  x@            从标准输入设备读取要排除的文件名
  x@<列表>      排除指定列表文件中的文件
  y             假设对全部询问都回答是
 



UNRAR 3.60 freeware      Copyright (c) 1993-2006 Alexander Roshal

Usage:     unrar - -
               <@listfiles...>


  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
  ap      Set path inside archive
  av-           Disable authenticity verification check
  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 in specified list file
  o+            Overwrite existing files
  o-            Do not overwrite existing files
  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

阅读(3874) | 评论(0) | 转发(0) |
0

上一篇:python 文件的md5

下一篇:erlang 格式化输出

给主人留下些什么吧!~~