• 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.

  • 相关阅读:
    将word转化为swf 进行如同百度文库的般阅读
    最大子数组问题——编程珠玑第八章
    为什么静态成员必须在类外初始化
    C++初始化列表
    异步消息总线hornetq学习-03客户端连接hornet进行jms消息的收发-非jndi方式连接
    [PLL][PM]锁相环模拟相位解调
    insertion sort
    SRM 581 D2 L2:SurveillanceSystem,重叠度
    JQuery(下)
    Ajax
  • 原文地址:https://www.cnblogs.com/cnblogist/p/5896432.html
Copyright © 2020-2023  润新知