How do I type a carriage return control character, in Windows or in Linux?
I'd like to type a backspace character too.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
In linux, backspace is Ctrl+H, carriage return is Ctrl+M
If you want to insert a literal carriage return/backspace, you must quote it. Quoting is program-specific, but usually (or at least in
bash) Ctrl+V quotes the next character. Other programs have different quoting mechanism, e.g. Ctrl+Q in
emacs or Meta+V in
bash, you would press Ctrl+V then Ctrl+M
nanoyou would press Meta+V then Ctrl+H
emacs, you would press Ctrl+Q then Ctrl+M
Edit: To insert another control character, look in this table in the first column. For example, to type an escape character you would press
The decimal value for the ASCII carriage return character is 13. With Microsoft Windows, hold down the <ALT> key and type the numbers "13" on the numeric keypad; the row of numeric above QWERTY won't work. This will insert the "♪" character in to your document.
You can also copy the "♪" character from this answer and paste it in to your document as well.