What Is Ctrl M in Linux?
Contents

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.

What is Control M in Linux?

How to remove CTRL-M (^M) blue carriage return characters from a file in Linux. … ^M is the keyboard equivalent to r or CTRL-v + CTRL-m in vim.

What is control M character in Unix?

There are several UNIX commands e.g. dos2unix which can be used to convert a Windows or DOS generated files to UNIX one. … Windows/DOS uses 2 characters: Carriage Return/Line Feed (CR/LF). The control M characters appear in a file when you transfer them from Windows to UNIX (see How Linux works).

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest