我正在尝试使用7z压缩大型文件以达到良好的压缩效果,并使用zip解压缩该文件,以将其发送给未安装7zip的用户。
选择7zip是因为它可以很好地压缩文本文件,并且易于安装。可以在以下位置找到针对文本文件的不同算法的性能分析 https://www.maximumcompression.com/data/log.php
7z a -t7z -m0=LZMA -mmt=on -mx=9 -md=96m -mfb=256 zipfile.zip largefile.txt
unzip zipfile.zip
它给我以下错误:
Archive: zipfile.zip
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
note: tourEventsCountry.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of tourEventsCountry.zip or