Readline key mapping

Readline is the terminal library used by bash and other applications to manage the interactive command line interface. The default key mappings are shown here.

Keystrokes Effect
Movement
CtrlaMove cursor to start of line
CtrleMove cursor to end of line
CtrlxxToggle cursor between current and previous positions
AltbMove back to start of current/preceding word
AltfMove forward to after end of current/next word
CtrlbMove back one character
CtrlfMove forward one character
Editing
CtrlkDelete to end of line
CtrluDelete to start of line
AltdDelete to end of word
CtrlwDelete back to start of word
CtrldDelete character at cursor — like Delete
CtrlhDelete character before cursor — like BackSpace
CtrlyPaste
AltuUppercase to end of word
AltlLowercase to end of word
AltcCapitalise to end of word
AlttSwap word with previous
CtrltSwap character with previous
CtrlxeEdit the line with $EDITOR
CtrlxuUndo the last edit operation
Ctrl_Undo the last edit operation
AltrUndo all edit operations
History
CtrlrSearch iteratively back through history for substring
CtrlrSearch iteratively back through history for substring
CtrlgAbort history search
CtrlpPrevious history entry
CtrlnNext history entry
Alt.Insert last word of previous line
Miscellaneous
CtrllClear terminal screen
CtrlvEscape following control sequence
CtrlxvDisplay bash version
CtrlxrRe-read .inputrc