从命令行使用 p7zip 压缩文件

从命令行使用 p7zip 压缩文件

我想使用 7z 将四个 ISO 文件压缩到ISOs.7z从我的 Sabayon 机器上的命令行调用的新存档中。这些是我到目前为止尝试过的命令(我知道这些命令都没有指定输出 7z 存档的名称,只是从这些命令开始简单,以便我能够掌握使用 7z 压缩的方法):

7z a chakra-2015.11-fermi-x86_64.iso openSUSE-Leap-42.1-DVD-x86_64.iso PCBSD10.2-RELEASE-08-19-2015-x64-DVD-USB.iso Sabayon_Linux_15.11_amd64_MATE.iso

7za a chakra-2015.11-fermi-x86_64.iso openSUSE-Leap-42.1-DVD-x86_64.iso PCBSD10.2-RELEASE-08-19-2015-x64-DVD-USB.iso Sabayon_Linux_15.11_amd64_MATE.iso

两者都不起作用。其中后者给出了:

Open archive: chakra-2015.11-fermi-x86_64.iso

ERRORS:
There are data after the end of archive

--
Path = chakra-2015.11-fermi-x86_64.iso
Type = xz
ERRORS:
There are data after the end of archive
Offset = 205312
Physical Size = 10840636
Tail Size = 2144760772
Method = LZMA2:23
Streams = 1
Blocks = 1


Error:
There is some data block after the end of the archive
E_NOTIMPL


System ERROR:
E_NOTIMPL

答案1

正确的语法是:

7z a isos.7z *.iso

或者

7z a isos.7z chakra-2015.11-fermi-x86_64.iso openSUSE-Leap-42.1-DVD-x86_64.iso PCBSD10.2-RELEASE-08-19-2015-x64-DVD-USB.iso Sabayon_Linux_15.11_amd64_MATE.iso

相关内容