Command-Line
從命令行使用 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
正確的語法是:
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