Moving Within Bash
I have recently learned that it is possible to jump around text in bash using the following commands:
Ctrl + A | Goes to the start of the line. |
Ctrl + E | Goes to the end of the line. |
Ctrl + B | Goes 1 character to left. |
Ctrl + F | Goes 1 character to the right. |
Alt + B | Goes to the start of the word. |
Alt + F | Goes to the end of the word. |
It is also possible to remove text:
Ctrl + U | Delete from start of line to current character. |
Ctrl + W | Delete from start of word to current character. |
Alt + D | Delete from current character to end of word. |
Ctrl + K | Delete from current character to end of line. |