Quick Tip: Move the Cursor in OS X Terminal with your Mouse
If you work in the terminal a lot, like I do, I’m sure you’ve typed in a long command and misspelled something or forgotten a flag along the way. If you just forgot to sudo, or do something at the beginning of the command, just press UP ARROW to recall the command and CTRL+A to return to the beginning of the line.