Subj : Re: why I always got extra characters after ftp to linux pc To : comp.os.linux From : zhe Date : Fri Jul 09 2004 09:21 am Yes, I got it. thanks all you guys for help. it is realy helpful for me with little linux experience. thanks. /zhenwu Larry I Smith wrote in message news:... > 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 .