馬上加入Android 台灣中文網,立即免費下載應用遊戲。
您需要 登錄 才可以下載或查看,沒有帳號?註冊
x
e Use a separate solid block for each new file extension. You need to use qs option also. 對於每個新的檔案擴展名,使用一個單獨的固實區塊。你還需要使用 qs 選項 qs=on 參數設 s=e qs=on qs在後面 底下 有說明 請放心
..............................................................................................................
依副檔名分組:同副檔名的檔案打包在同一固實區塊內,不同類型檔案之間不共用壓縮字典,可兼顧壓縮率與存取速度。
{N}f Set the limit for number of files in one solid block 設定一個固實區塊中的文件數量限制
設置固體模式,對於 7z 格式的每個固實區塊限制 100 個文件和 256 MB。
依檔案數量分塊:每 N 個檔案為一固實區塊,例如 100f 表示每100個檔案重新開始一個新區塊。
100 files
100f
................................................................................................................
{N}b | {N}k | {N}m | {N}g | {N}t Set a limit for the total size of a solid block in bytes / KiB / MiB / GiB / TiB. 設置固實區塊的總大小限制,以位元組 b / KiB / MiB / GiB / TiB 為單位。
The default solid block size depends on the compression method and the dictionary size. The default dictionary size depends on the compression level.
The default solid block size for all methods other than LZMA2 (LZMA, PPMD, BZIP2, Deflate, De-flate64) is caluclated by the formula:
默認的固實區塊大小取決於壓縮方法和字典大小。默認字典大小取決於壓縮級別。對於所有方法(除LZMA2外,LZMA、PPMD、BZIP2、Deflate、De-flate64),默認的固實區塊大小是通過以下公式計算的:
The default solid block size for LZMA2 method: LZMA2方法的預設固實區塊大小
.......................................................................................................................
NOTE: if LZMA2 is used, 7-Zip can split data into chunks and then it compresses those chunks simultaneously using multiple CPU threads. By default, there are 64 chunks in a solid block. LZMA2 encoder uses about 2 CPU threads per chunk at compression level 5 or higher. So by default LZMA2 encoder can use up to 128 CPU threads for compression, if CPU supports such number of threads. 7-Zip doesn't compress several solid blocks simultaneously to the 7z ar-chive. Thus, multitreading is provided only within a solid block of the 7z archive. If solid block is large, then there are more chunks in solid block, and LZMA encoder and decoder can use more cpu threads for compression and decompression.
注意:如果使用 LZMA2,7-Zip 可以將數據分割成多個區塊,然後同時使用多個 CPU 執行緒壓縮這些區塊。默認情況下,固實區塊中有 64 個區塊。在壓縮等級 5 或更高級別,LZMA2 編碼器大約使用每個區塊 2 個 CPU 執行緒。因此,根據默認設定,LZMA2 編碼器可以在 CPU 支持這麼多執行緒的情況下,使用最多 128 個 CPU 執行緒進行壓縮。7-Zip 不會同時壓縮多個固實區塊到 7z 壓縮檔案中。因此,多執行緒僅在 7z 壓縮檔案的一個固實區塊內提供。如果固實區塊很大,那麼固實區塊中會有更多的區塊,LZMA 編碼器和解碼器可以使用更多的 CPU 執行緒進行壓縮和解壓。
Limitation of the solid block size usually decreases compression ratio but gives the following advantages:
固實區塊大小的限制通常會降低壓縮比,但帶來以下優勢:
• it reduces data loss in case of future archive damage. 它減少未來檔案損壞時的數據損失
• it reduces extraction time of a group of files (or just one file), so long as the group doesn't contain the entire archive. 它減少一組文件(或僅一個文件)的提取時間,只要該組不包含整個檔案。
Example: 範例
s=100f16g
....................................................................................................
set solid mode with 100 files & 256 MB limits per one solid block for 7z format.
qs=[off | on]
Enables or disables sorting files by type in solid archives. The default mode is qs=off.
Old versions of 7-Zip (before version 15.06) used file sorting "by type" ("by extension").
New versions of 7-Zip (starting from version 15.06) support two sorting orders:
• qs- : sorting by name : it's default order.
• qs : sorting by type (by file extension).
...................................................................................................
在固實壓縮檔案中啟用或禁用按類型排序檔案。默認模式為qs=off。舊版本的7-Zip(在15.06版本之前)使用按類型(按副檔名)排序檔案。新的7-Zip版本(從15.06版本開始)支持兩種排序順序:qs- : 按名稱排序:這是默認順序。qs : 按類型排序(按檔案副檔名)。
You can get big difference in compression ratio for different sorting methods, if dictionary size is smaller than total size of files. If there are similar files in different folders, the sorting "by type" can provide better compression ratio in some cases.
Note that sorting "by type" has some drawbacks. For example, NTFS volumes use sorting or-der "by name", so if an archive uses another sorting, then the speed of some operations for files with unusual order can fall on HDD devices (HDDs have low speed for "seek" operations).
設置固體模式,對於 7z 格式的每個固實區塊限制 100 個文件和 256 MB。qs=[off | on]啟用或禁用在固體檔案中按類型排序文件。默認模式為 qs=off。舊版本的 7-Zip(在 15.06 版本之前)使用按類型(按擴展名)排序文件。新版本的 7-Zip(從 15.06 版本開始)支持兩種排序方式: qs- : 按名稱排序 : 這是默認排序。 qs : 按類型排序(按文件擴展名)。如果字典大小小於文件的總大小,則對於不同的排序方法,你可以獲得壓縮比的巨大差異。如果在不同文件夾中有相似的文件,則按類型排序在某些情況下可以提供更好的壓縮比。請注意,按類型排序有一些缺點。例如,NTFS 卷使用按名稱的排序順序,因此如果壓縮文件使用其他排序,則對於具有不尋常排序的文件,一些操作的速度可能會在 HDD 設備上下降(HDD 在尋找操作上速度較慢)。
If "qs" mode provides much better compression ratio than default "qs-" mode, you still can in-crease compression ratio for "qs-" mode by increasing of dictionary size.
If you think that unusual file order is not problem for you, and if better compression ratio with small dictionary is more important for you, use "qs" mode.
如果 "qs" 模式提供的壓縮比比默認的 "qs-" 模式好得多,您仍然可以透過增加字典大小來提高 "qs-" 模式的壓縮比。如果您認為不尋常的文件順序對您來說不是問題,而且如果小字典下更好的壓縮比對您來說更重要,那麼請使用 "qs" 模式。
Note: There are some files (for example, executable files), that are compressed with additional filter. 7-Zip can't use different compression methods in one solid block, so 7-zip can create several groups of files that don't follow "by name" order in "qs-" mode, but files inside each group are still sorted by name in "qs-" mode.
注意:有些文件(例如,可執行文件)使用附加過濾器進行壓縮。7-Zip 無法在一個固實區塊中使用不同的壓縮方法,因此在 "qs-" 模式下,7-Zip 可以創建幾組不按 "名稱" 排序的文件,但每組內的文件仍然按照 "qs-" 模式以名稱排序。
f=[off | on | FilterID]
Enables or disables compression filters. The default mode is f=on, when 7-zip uses filter for some files: executables files (dll, exe, ocx, sfx, sys) and wav files. for X86 executables it can use BCJ2 filter in Ultra (x9) mode and BCJ filter in other modes. If f=FilterID if specified, 7-zip uses specified filter for all files. FilterID can be: Delta:{N}, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC.
啟用或禁用壓縮過濾器。默認模式為 f=on,此時 7-zip 會對某些文件使用過濾器:可執行文件(dll、exe、ocx、sfx、sys)和 wav 文件。對於 x86 可執行文件,它可以在超級(x9)模式下使用 BCJ2 過濾器,在其他模式下使用 BCJ 過濾器。如果指定了 f=FilterID,7-zip 將對所有文件使用指定的過濾器。FilterID 可以是:Delta:{N}、BCJ、BCJ2、ARM64、ARM、ARMT、RISCV、IA64、PPC、SPARC。
...........................................................................................
hc=[off | on]
Enables or disables archive header compressing. The default mode is hc=on. If archive header compressing is enabled, the archive header will be compressed with LZMA method.
啟用或禁用檔案標頭壓縮。默認模式為 hc=on。如果啟用檔案標頭壓縮,檔案標頭將使用 LZMA 方法進行壓縮。
hc=on 用預設即可
he=[off | on]
Enables or disables archive header encryption.
The default mode is he=off (archive header encryption is disabled).
The archive header contains metadata of the stored files (file names, file sizes, timestamps, at-tributes) and other additional archive metadata information.
If archive header encryption option is disabled (he=off), the archive header will be stored without encryption. If archive header encryption option is enabled (he=on), and a password is specified (-p switch on the command line or the password entered in the "Password" field in the GUI), then both file data and headers will be encrypted.
啟用或禁用存檔標頭加密。默認模式是 he=off(存檔標頭加密被禁用)。存檔標頭包含存儲文件的元數據(文件名稱、文件大小、時間戳、屬性)以及其他附加的存檔元數據信息。如果禁用存檔標頭加密選項(he=off),則存檔標頭將以未加密的方式存儲。如果啟用存檔標頭加密選項(he=on),並且指定了密碼(命令行中的 -p 開關或在 GUI 的「密碼」欄位中輸入的密碼),則文件數據和標頭將都會被加密。
首先 在搜尋列 輸入 cmd 以系統管理員身份執行
然後先將路徑指向 這裡
C:\Windows\system32>cd\
C:\>cd Program Files
C:\Program Files>cd 7-Zip
C:\Program Files\7-Zip>
7-Zip所在的程式檔 底下有一個 7z.exe 執行檔 就是用它來執行命令的
在這下 cmd 命令 -m(啟用加密檔案頭) -p加密 設密碼為 cyn
C:\Program Files\7-Zip>7z a -pcyn -mhe=on e:\bc\s.7z e:\raw
在路徑 輸入這行即可 7z a -pcyn -mhe=on e:\bc\s.7z e:\raw
b{C1}[s{S1}]:{C2}[s{S2}]
Binds output stream S1 in coder C1 with input stream S2 in coder C2. If stream number is not specified, stream with number 0 will be used.
Usally coder has one input stream and one output stream. In 7z some coders can have multiple input and output streams.
For example, BCJ2 encoder has one input stream and four output streams.
將輸出流 S1 在編碼器 C1 中與輸入流 S2 在編碼器 C2 中綁定。如果未指定流號,將使用編號為 0 的流。通常編碼器有一個輸入流和一個輸出流。在 7z 中,一些編碼器可以具有多個輸入和輸出流。例如,BCJ2 編碼器有一個輸入流和四個輸出流。
................................................................................................
首先 在搜尋列 輸入 cmd 以系統管理員身份執行
然後先將路徑指向 這裡
C:\Windows\system32>cd\
C:\>cd Program Files
C:\Program Files>cd 7-Zip
C:\Program Files\7-Zip>
以命令輸入
C:\Program Files\7-Zip>7z b 1 s32:4 s64 s字典大小
結果
7-Zip 24.09 (x64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-11-29
Compiler: MSC 1400.140040310
Windows 10.0 19045
x64 6.4E03 threads:4 128TB f:1F110F2774C
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
(406E3 : Intel64 Family 6 Model 78 Stepping 3) (C6->CC) 2400 MHz
1T CPU Freq (MHz): 1432 2308 2590 2597 2673 2674 2658
2T CPU Freq (MHz): 197% 2576 200% 2569
4T CPU Freq (MHz): 384% 2417 378% 2325
RAM size: 12180 MB, # CPU hardware threads: 4
RAM usage: 889 MB, # Benchmark threads: 4
Compressing | Decompressing
Dict Speed Usage R/U Rating | Speed Usage R/U Rating
KiB/s % MIPS MIPS | KiB/s % MIPS MIPS
22: 10441 293 3469 10157 | 135310 378 3052 11544
23: 9750 305 3253 9934 | 127004 360 3052 10990
24: 7455 269 2979 8016 | 123990 358 3036 10881
25: 8139 286 3249 9293 | 123258 353 3109 10970
---------------------------------- | ------------------------------
Avr: 8946 288 3237 9350 | 127391 362 3062 11096
Tot: 325 3150 10223
|

|