Bash Gibberish - Type Less, Do More

Over my several years of experience with bash I found several really useful tips and tricks. This post will deal with some of the more obfuscated looking “variables” that Bash provides.


This is a companion discussion topic for the original entry at http://amir.rachum.com/blog/2013/09/06/bash-gibberish-type-less-do-more/

I use quite often !command:p , it brings the last command you ran the first of your history. The next one is useful when copying files: !scp:s/host1/host2.