Readline shortcuts

GNU Readline is the library used to make advanced command-line wizardry convenient and conistent across a multitude of command-line applications. These programs include .

The cheatsheet at the right contains a summary of many of the useful line editing command shortcuts which are available in all applications that use libreadline.

See the documentation on the Readline website for even more shortcuts with more elaborate descriptions.

rowan@bigsmoke.us

BitCoin donations:

Emacs keys Action Scope Direction/Place
Moving around Move the cursor one character ⇦ to the left
Move the cursor one character ⇨ to the right
Move the cursor one word ⇦ to the left
Move the cursor one word ⇨ to the right
Move the cursor ⇤ to the start of the line
Move the cursor ⇥ to the end of the line
[1] Move the cursor ⇤⇥ to the start, and to the end again
Cut, copy
and paste
Backspace Delete the character ⇦ to the left of the cursor
DEL
Delete the character underneath the cursor
Delete everything ⇤ from the cursor back to the line start
Delete everything ⇥ from the cursor to the end of the line
Delete word ⇨ untill before the next word boundary
Delete word ⇦ untill after the previous word boundary
Yank/Paste prev. killed text at the cursor position
Yank/Paste prev. prev. killed text at the cursor position
History Move in history one line ⇧ before this line
Move in history one line ⇩ after this line
') ?> Move in history all the lines ⇩ to the line currently being entered
Incrementally search the line history ⇧ backwardly
[2] Incrementally search the line history ⇩ forwardly
End an incremental search
Abort an incremental search and restore the original line
Yank/Paste arg. 1 of prev. cmnd at the cursor position

Yank/Paste last arg of prev. cmnd at the cursor position
Undo

Undo the last editing command; you can undo all the way back to an empty line
Undo all changes made to this line
Clear the screen, reprinting the current line at the top
Clear the screen, reprinting the current line at the top
Completion TAB Auto-complete a name
[3] Auto-complete a name (without smart completion)
List the possible completions of the preceeding text
Insert all possible completions of the preceeding text
Transpose Transpose/drag char. before the cursor ↷ over the character at the cursor
Transpose/drag word before the cursor ↷ over the word at/after the cursor