What Is Control M Character in Linux?
Contents Ctrl M or ^M Is the Carriage Return Character. Those Come in the File Because of Different Line Termination Characters Used by Unix and Windows/Dos...
Ctrl M or ^M is the carriage return character. Those come in the file because of different line termination characters used by Unix and Windows/DOS operating systems. Unix uses only line feed (LF) while windows use both carriage return (CR) and line feed (LF) as termination characters.
What is Ctrl M in Linux?
Viewing the certificate files in Linux shows ^M characters appended to every line. The file in question was created in Windows and then copied over to Linux. ^M is the keyboard equivalent to r or CTRL-v + CTRL-m in vim.
How do I find Ctrl M characters in Linux?
Note: Remember how to type control M characters in UNIX, just hold the control key and then press v and m to get the control-m character.