Bang commands in shell
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: 
http://www.softpanorama.org/Scripting/Shellorama/bash_command_history_reuse.shtml
Written by Alexander Greim
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Shell 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
