Wil*_*ley 14 size zip compression files
我想查看已压缩为单个 zip 文件的每个文件的绝对大小(以字节为单位)。阅读了 zip 手册页后,我不确定该实用程序是否可以做到。这是在 Mac OS X 上。
就像是:
$zip list myarchive.zip
file1.jpg 100 bytes compressed 3000 bytes uncompressed
file2.jpg 130 bytes compressed 3440 bytes uncompressed
Run Code Online (Sandbox Code Playgroud)
n0p*_*0pe 20
您可以使用unzip带有-v标志的实用程序:
unzip -v files.zip
Archive: files.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
0 Stored 0 0% 11-23-2011 15:02 00000000 file1
0 Stored 0 0% 11-23-2011 15:02 00000000 file2
-------- ------- --- -------
0 0 0% 2 files
Run Code Online (Sandbox Code Playgroud)
注意:这里的文件大小是0因为我制作了零长度的测试文件。