1. 程式人生 > >解壓cpio檔案:cpio: premature end of file

解壓cpio檔案:cpio: premature end of file

剛解壓一個cpio檔案,遇到如下錯誤:

[[email protected] ora92]$ cpio -idcmv < ship_9204_linux_disk1.cpio 

cpio: premature end of file

GOOGLE了一下,說是cpio命令選項 -idcmv的問題,應去掉c,再次嘗試:

[[email protected] ora92]$ cpio -idmv < ship_9204_linux_disk1.cpio 
Disk1/stage/locks
Disk1/stage/Components/oracle.apache.ejb/9.2.0.1.0/1
Disk1/stage/Components/oracle.apache.ejb/9.2.0.1.0
Disk1/stage/Components/oracle.apache.ejb
Disk1/stage/Components/oracle.apache.isqlplus/9.2.0.4.0/1
Disk1/stage/Components/oracle.apache.isqlplus/9.2.0.4.0
Disk1/stage/Components/oracle.apache.isqlplus
Disk1/stage/Components/oracle.apache.mod8i/9.2.0.1.0/1
Disk1/stage/Components/oracle.apache.mod8i/9.2.0.1.0


解壓成功...!