Bang commands are helpful to repeat shell commands recorded in the history. You probably know about the
CMD + r interactive history search. With bang commands you can be faster.
Bang commands I often use are for example:
!ssh - the most recent ssh command
bundle exec !! - the most recent command in bundler environment
Find a more extensive list here: