"
1. Use "!"
If you use the command line a lot, it is very likely that you will run several different commands in a short span of time. And if you want to re-run a command that was just recently used, using "!" is much faster than using the arrow keys to find the command. With "!", you only have to remember the name of the command. For example, if you want to re run the last "vim" command, you just need to typ "!vim" and vim will open the last file without you typing the whole command.
2. Use "!!"
Using "!!" is the best way to re-call the previous command. It is actually faster than using the arrow keys. For example, when you forget to type "sudo" before the previous command, to re-run it with sudo, you just need to type "sudo !!"."
More here:
http://www.linuxandlife.com/2013/04/some-tips-to-use-command-line-faster.html