Bash: the last word you typed with !$
Another terminal command that is as indispensable as the !! command is the !$ command. This command uses the last word you typed, and is particularly useful when you’re doing several things to the same file or directory, or when the last thing you typed is long and complicated. For example:
mkdir /usr/share/lib/foobar
chmod 755 !$
cd !$
Eventually your brain will type these without thinking.
Source: http://lifehacker.com/software/command-line/ctrl%2Br-to-search-and-other-terminal-history-tricks-278888.php