Bash history substitutions
Quick Reference
Repeat previous command with sudo
Search in the command history by pattern
Switch to newly created directory with N
Using
Repeat the previous command with a substitution