我有一个 7zip 存档,我需要将其解压缩到另一个目录而不是存档所在的目录,但是我收到错误“错误:命令行不正确”。我正在运行的命令是7zr e -o extract/ {name_of_archive}.7z
. 我究竟做错了什么?
试试这个命令(你可以使用 7z,7za 或 7zr):
7z x -oextract/ foo.7z
Run Code Online (Sandbox Code Playgroud)
根据 7z 联机帮助页,“-o”开关和目录名称之间不应有空格:
-o{Directory}
Set Output directory
Run Code Online (Sandbox Code Playgroud)
7z、7za 和 7zr :
7-Zip is a file archiver with the highest compression ratio. The pro?
gram supports 7z (that implements LZMA compression algorithm), LZMA2,
XZ, ZIP, Zip64, CAB, RAR (if the non-free p7zip-rar package is
installed), ARJ, GZIP, BZIP2, TAR, CPIO, RPM, ISO, most filesystem
images and DEB formats. Compression ratio in the new 7z format is
30-50% better than ratio in ZIP format.
Run Code Online (Sandbox Code Playgroud)
- 7z 使用插件来处理档案。
- 7za 是一个独立的可执行文件。7za 处理的归档格式比 7z 少。
- 7zr 是一个独立的可执行文件。7zr 处理的存档格式比 7z 少。
7zr 是 7za 的“轻量版”,仅处理 7z 档案。
归档时间: |
|
查看次数: |
12297 次 |
最近记录: |