尝试从tar文件中提取所有文件时,我收到以下错误消息:
tar: Skipping to next header tar: Error exit delayed from previous errors
在打印此错误消息之前,某些文件会正确提取,并且该过程会生成一个似乎包含其余存档的乱码文件.此存档中的所有文件都是文本文件.
有什么我可以尝试恢复其余的文件?
解决方法
您可以使用-i选项尝试提取以忽略零:
The --ignore-zeros (-i) option causes tar to ignore blocks of zeros in the archive. Normally a block of zeros indicates the end of the archive,but when reading a damaged archive,or one which was created by cat-ing several archives together,this option allows tar to read the entire archive. This option is not on by default because many versions of tar write garbage after the zeroed blocks.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。