Readline
shortcut | outcome |
---|---|
ctrl-a | move to the beginning of the line |
ctrl-b | move backward one character |
ctrl-d | delete the character forward |
ctrl-e | move to the end of the line |
ctrl-f | move forward one character |
ctrl-o | create new line below cursor |
ctrl-p | move up one line |
Meta-f | move forward one word |
Meta-p | move back one word |
ctrl-n | move down one line |
ctrl-h | delete the character before the cursor |
ctrl-k | cut from the cursor to the end of the line |
ctrl-l | clearn the screen |
ctrl-o | open a new line below the current line |
ctrl-t | swap the character before the cursor with the character under the cursor |
ctrl-v | move to last character in file |
ctrl-w | delete the word before the cursor |
ctrl-y | yank (paste) |
ctrl-k | delete from the cursor to the end of the line |
On a Mac, Meta is ctrl + opt.