每天一个linux命令(2):unrar

来源:互联网 发布:天刀冰云染色数据 编辑:程序博客网 时间:2024/06/07 02:44

解压rar文件。

unrar -?

Usage:     unrar <command> -<switch 1> -<switch N> <archive> <files...>
               <@listfiles...> <path_to_extract\>

<Commands>
  e             Extract files without archived paths
  l[t[a],b]     List archive contents [technical[all], bare]
  t             Test archive files
  v[t[a],b]     Verbosely list archive contents [technical[all],bare]
  x             Extract files with full path

使用-?参数可以查看帮助信息,x参数用于解压文件, t参数用于测试是否损坏,l参数用于列出文件。

unrar -?                   <== 获取帮助

unrar x <rar-file>    <== 解压文件

unrar t <rar-file>    <== 测试文件

unrar l <rar-file>     <== 列出文件

unrar v <rar-file>    <== 详细列出文件

测试文件是否OK,列出文件,解压文件。 t  > l  /  v  > x





0 0