History Tricks: !!, !$ and Ctrl+R
!! runs the last command again and !$ reuses its last argument, sudo !! repeats a command that needed sudo, Ctrl+R steps back through older matches, and four lines in ~/.bashrc keep a longer history that every terminal adds to.
Updated

- Category
- Bash
- Level
- Journeyman
- Tags
- bashrc-and-profile, command-history, history-expansion, linux, sudo, unix