Here's another pro tip. Say you wanted to run a command in sudo context but forgot that. Usually you'd hit the up arrow, press
HOME button, type
sudo and hit
There is a geekier way to do that. Just type:
$ sudo !!
Bash will expand the two exclamation points to the previous command and it will be run through