4 bash (bourne again shell) tips
Some quick keyboard commands I use often on the command line
Repeat last command: !! and Meta(Alt)+. Not sure about the usefulness of this one, but might keep your fingers a little closer to the home row instead of the land of arrow keys.
Begin and end: CTRL+a by itself moves your cursor to the beginning of the line. CTRL+e moves your cursor to the end of the line.
Delete a line of text: Probably my most used keystroke: CTRL+a, CTRL+k = nuke the whole line of text. Don’t hit control twice, just hold it and hit “ak”. You can also do CTRL+u for the same effect, but I find myself using CTRL+ak more because of its home row goodness. The secret here is that CTRL+k deletes from the cursor positon to the end of the line. Well, if you are already at the beginning of the line then you’ve got the whole thing nuked.
Undo: Whoops, you just nuked a line of text that you want back. Try CTRL+_ That’s an underscore, so you’ll need to press the shift key. Another way of writing it is CTRL+SHIFT+-.
All these commands work great in most Mac text input too (dagger-eyes at Adobe Air).