zoukankan      html  css  js  c++  java
  • Linux下tar-rar-unrar解压/压缩缩命令大全

     

     

    RAR文件下载:http://www.rarlab.com/download.htm

     

    NRAR 5.40 freeware      Copyright (c) 1993-2016 Alexander Roshal
    
    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]
      p             Print file to stdout
      t             Test archive files
      v[t[a],b]     Verbosely list archive contents [technical[all],bare]
      x             Extract files with full path
    
    <Switches>
      -             Stop switches scanning
      @[+]          Disable [enable] file lists
      ad            Append archive name to destination path
      ag[format]    Generate archive name using the current date
      ai            Ignore file attributes
      ap<path>      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<file>       Additionally filter included files
      n@            Read additional filter masks from stdin
      n@<list>      Read additional filter masks from list file
      o[+|-]        Set the overwrite mode
      ol[a]         Process symbolic links as the link [absolute paths]
      or            Rename files automatically
      ow            Save or restore file owner and group
      p[password]   Set password
      p-            Do not query password
      r             Recurse subdirectories
      sc<chr>[obj]  Specify the character set
      sl<size>      Process files with size less than specified
      sm<size>      Process files with size more than specified
      ta<date>      Process files modified after <date> in YYYYMMDDHHMMSS format
      tb<date>      Process files modified before <date> in YYYYMMDDHHMMSS format
      tn<time>      Process files newer than <time>
      to<time>      Process files older than <time>
      ts<m,c,a>[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<file>       Exclude specified file
      x@            Read file names to exclude from stdin
      x@<list>      Exclude files listed in specified list file
      y             Assume Yes on all queries

     

     

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

    unrar e file.rar ——————》解压到当前目录
    unrar x file.rar (目录名)——————》解压到xx目录
    unrar l file.rar ——————》查看rar中的文件
    unrar v file.rar ——————》查看rar更详细信息
    unrar t file.rar ——————》检查是否可以成功压缩

    注:
      file.rar:是我们压缩的文件.



     

  • 相关阅读:
    【自制操作系统03】读取硬盘中的数据
    【自制操作系统02】环境准备与启动区实现
    【自制操作系统01】硬核讲解计算机的启动过程
    【30天自制操作系统】day06:中断
    java8 stream ,filter 等功能代替for循环
    如何评估工作量--三点估算
    python 错误AttributeError: 'module' object has no attribute 'AF_INET'
    python入门学习
    mysql5.7.10和mysql5.5.39两个版本对于group by函数的处理差异
    jenkins 构建时,取消构建测试类
  • 原文地址:https://www.cnblogs.com/why168888/p/5975559.html
Copyright © 2011-2022 走看看