Recall Shortcuts
suggest change| Shortcut | Description |
|---|---|
| Ctrl + r | search the history backwards |
| Ctrl + p | previous command in history |
| Ctrl + n | next command in history |
| Ctrl + g | quit history-search mode |
| Alt + . | insert the last word of the previous command; repeat to walk further back |
| Alt + n, Alt + . | use the nth word of the previous command |
| !! then Return | execute the last command again (useful when you forgot sudo: sudo !!) |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents