Command Editing Shortcuts
Command Recall Shortcuts
Command Control Shortcuts
Bash Bang (!) Commands
Bash also has some handy features that use the ! (bang) to allow you to do some funky stuff with bash commands.
!!
– run last command !blah
– run the most recent command that starts with ‘blah’ (e.g. !ls)
!blah:p
– print out the command that !blah would run (also adds it as the latest command in the command history)