Subj : Re: why I always got extra characters after ftp to linux pc To : comp.os.linux From : Larry I Smith Date : Fri Jul 09 2004 04:03 am hzw wrote: > I can not understand this issue. I use ftp to put some files to linux > pcs, some of them always got extra characters like ^M when I opened it > with "vi -b", but some of them do not have. The more interesting thing > is that, when I upload same file to two different linux pcs, one has > the other doesnot. What does this mean, any config can remove this. > thanks. > > /zhenwu When transfering TEXT files from OS to OS, use the 'ascii' mode of ftp. This will ensure that the newlines are correct at the recieving OS. When transfering BINARY files, use the 'binary' mode of ftp. Example: ftp ...... > ascii > put some_text_files > binary > put some_binary_files > bye Regards, Larry -- Anti-spam address, change each 'X' to '.' to reply directly. .