Linux Commands
Linux Commands
Ctrl+I = Tab
Ctrl+J = Newline
Ctrl+M = Enter
Ctrl+[ = Escape
Many terminals will also send control characters for keys in the digit row:
Ctrl+2 ? ^@
Ctrl+3 ? ^[ Escape
Ctrl+4 ? ^\
Ctrl+5 ? ^]
Ctrl+6 ? ^^
Ctrl+7 ? ^_ Undo
Ctrl+8 ? ^? Backward-delete-char
Ctrl+v tells the terminal to not interpret the following character, so Ctrl+v Ctrl-
I will display a tab character,
similarly Ctrl+v ENTER will display the escape sequence for the Enter key: ^M
History:
Ctrl + r Recall the last command including the specified character(s)
searches the command history as you type.
Equivalent to : vim ~/.bash_history.
Ctrl + p Previous command in history (i.e. walk back through the command
history)
Ctrl + n Next command in history (i.e. walk forward through the command
history)
$ set -o vi
Set Emacs Mode in bash:
$ set -o emacs