Goal: Transferring a file from client to the server.
Environment: Linux
Problem:
- When opening the incompletely copied file in the server, it looks like there is a "^M" character in the place of new line.
Goal: Transferring a file from client to the server.
Environment: Linux
Problem:
^M (one character) is 0x0D
NewLine char on Linux is 0x0A
NewLine char on Windows is 0x0D 0x0A (2 characters)
So 0x0D,0x0A will be displayed as ^M,NewLine (depends on which editor you use, what I said is correct with VIM)
BTW, if you want to input a ^M, you need to press ctrl+v, then ctrl+m (In VIM)