• 7z usecaes


    1. Archive without compressing

    7z a -t7z -mx=0 OutputFilename InputFilename

    Descryption:

    a: command, add to archive.

    -t: switch, specifies archive type.

    -mx: specifies level of compression

    -m: switch, compression Method, x: parameter of this switch.

    e.g. [-mx=0] or [-mx=1] or [-mx=3]or [-mx=5] or [-mx=7] or [-mx=9]

    Level of compression, e.g.:

    0: No compression; 1: Fastest compressing. 9: Ultra compressing.

    Input:Single/Mutiple file(s) and/or single/multiple folder(s).

    ----------

    2. Compress - ultra

    7z a -t7z -mx=9 OutputFilename InputFilename

    Notice: -mx=0 -> -mx=9

    ----------

    3. Split to volumns

    3.1 Archive without compressing: 7z a -t7z -mx=0 -v20m OutputFilename InputFilename

    3.2 Archive and compress: 7z a -t7z -mx=9 -v20m OutputFilename InputFilename

    ----------

    4. Add password

    7z a -t7z -pYourPassword OutputFilename InputFilename

    ----------

    5. Hide content - hide info in head file, usually in the first volumn if any.

    7z a -t7z -pYourPassword -mhe OutputFilename InputFilename

    -mhe: Enables or disables archive header encryption.

    he: Parameter of -m, header encryption.

    ----------

    6. List up content

    7z l ArchiveName

    l: command, list.

    ----------

    7. Extract archive

    7.1 e - Extract files to one directory

    7z e InputFilename

    Descryption: extracts all files to the current directory.

    7z e InputFilename -oc:soft *.cpp -r

    Descryption: extracts all *.cpp files from archive to c:soft folder.

    7.2 x - Extract files with full paths

    7z x InputFilename

    Descryption: extracts all files to the current directory.

    7z x InputFilename -oc:soft *.cpp -r

    Descryption: extracts all *.cpp files from archive to c:soft folder.

  • 相关阅读:
    online ddl与pt-osc详解
    几个重点问题回顾
    死锁及常见死锁模型
    InnoDB中锁的算法(3)
    一个幻读模型引出的记录可见性判断
    jupyter notebook的使用
    l线程池抓取lianjia
    lagou数据爬取
    爬虫代理的设置
    linux如何安装和启动mongdb
  • 原文地址:https://www.cnblogs.com/cnblogist/p/5896432.html
Copyright © 2020-2023  润新知