||
二进制传输 ASCII传输 压缩文件损坏
xftp 建立连接的时候默认选项是ascii,我们应该主动将其设置auto模式,
否则在传输非文本文件的时候就会损坏文件。
可以在xftp->文件->属性,重新设置默认属性。
也可以在建立连接的时候单独设置。
问题:
[gaussian@R910D1 jpcb]$ tar xvfj Amber16.tar.bz2
bzip2: Data integrity error when decompressing.
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
1、FTP在传送文件时分为ASC和Bin两种格式,只有文字文件(例如 html 文件)使用ASC,其他的通通使用Bin格式(例如图像文件、压缩文件、可执行文件等等)。
2、当我们使用ftp时,可简单地把文件分为两种基本类型:文本文件和二进制文件;文本文件也称为ASCII文件,其文件内容遵循ASCII的定义,其主要特征是文件内容由若干行组成,可以使用操作系统的显示、编辑命令来显示和编辑ASCII文件的内容,它使用的传输模式是asc;二进制文件(Binary
File)是指除ASCII文件以外的所有文件格式,它使用的传输模式是bin;需要注意的是,可以将ASCII文件按二进制模式传输,但决不能将二进制文件按ASCII模式传输,否则二进制文件的内容会遭到破坏而无法使用。
3、ASCII 切换传输模式为文字模式(只能用来传送文字文件);
BINARY 切换传输模式为二进制模式(除文字文件外皆用此模式);
4、文字文件传输推荐ASC而程序或数据文件必须使用BIN。
设置成自动模式或者二进制模式
https://blog.csdn.net/z507263441/article/details/38586769
https://zhidao.baidu.com/question/27928126.html
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-18 11:07
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社