Also, if you are using the same commands in a row frequently, you could just press the up arrow key (or down arrow key if you've gone too far).
It remembers the last 100 or so command lines.
especially good when you have to 'cp' a template then 'cd' to it.