Frequent Question: How Do You Identify Control M Characters in Unix?
Contents 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. How Do You...
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.
How do you type Ctrl M in Unix?
To enter ^M, type CTRL-V, then CTRL-M. That is, hold down the CTRL key then press V and M in succession. To enter ^M, type CTRL-V, then CTRL-M.
Must Read
What is Unix character M?
12 Answers
The ^M is a carriage-return character. If you see this, you’re probably looking at a file that originated in the DOS/Windows world, where an end-of-line is marked by a carriage return/newline pair, whereas in the Unix world, end-of-line is marked by a single newline.