Keyboard shortcut keys in bash for jumping to beginning or end of the line


[Image: linux_shortcut-end-of-line.gif]
In a bash prompt or command line, moving to begin or end of the line is often a time-consuming task especially when there are a lot of characters typed in. Bash provides keyboard shortcut keys to obtain this easily. Let us explore :

To move to the beginning of the line


Use keyboard shortcut keys Control and A
Code:
Ctrl + A

To move to the End of the line


Use keyboard shortcut keys Control and E
Code:
Ctrl + E

Hope this helps!