bash: go to beginning and the end of typed command

Use the shortcuts:
Ctrl+A
Ctrl+E