ShortcutDescriptionCtrl + rsearch the history backwardsCtrl + pprevious command in historyCtrl + nnext command in historyCtrl + gquit history searching modeAlt + .use the last word of the previous commandrepeat to get the last word of the previous + 1 commandAlt + n Alt + .use the nth word of the pr...
ShortcutDescriptionCtrl + amove to the beginning of the lineCtrl + emove to the end of the lineCtrl + kKill the text from the current cursor position to the end of the line.Ctrl + uKill the text from the current cursor position to the beginning of the lineCtrl + wKill the word behind the current cur...
With the bind command it is possible to define custom key bindings.
The next example bind an Alt + w to >/dev/null 2>&1:
bind '"\ew"':"\" >/dev/null 2>&1\""
If you want to execute the line immediately add \C-m (Enter) to it:
bind '"\ew&quo...