In bash, you can move to the beginning of the line with CTRL+A, and the end with CTRL+E. How can I move forward and backward by word?
With emacs bindings:
Meta-B moves back a word and Meta-F moves forward a word.
Ctrl-B moved back a character and Ctrl-F moves forward a character.
So B vs F is backwards vs forward and Meta vs Ctrl is word vs character.
The exact mapping of Meta may vary between keyboards. Try holding down Alt while pressing the other key; if that doesn't work, press and release Esc and then press the other key.