These are a couple of shortcuts that I should get familiar with.
Move
Move Cursor
Ctrl + A: go to the beginning of the line
Ctrl + E: go to the end of the lineMove Cursor in the word space
Alt + F: Move cursor forward one word
Alt + B: Move cursor backward one wordDelete
Clean
Ctrl + U: clear the line before the cursor position
Ctrl + K: clear the line after the cursorDelete Word
Ctrl + W: delete the words before the cursorsubstitution
^foo^bar: re-run the same command but substitute foo for bar