Bash supports various hot keys to ease editing at bash shell prompt. The following are the commonly used shortcuts .
| Ctrl+A |
Move to the start of the current lin |
| Ctrl+E |
Move to the end of the lin |
| Ctrl+F |
Move forward a characte |
| Ctrl+B |
Move back a characte |
| Alt+F |
Move forward to the end of the next word. Words are composed of alphanumeric characters (letters and digits |
| Alt+B |
Move back to the start of the current or previous word. Words are composed of alphanumeric characters (letters and digits) |
| Ctrl+L |
Clear the screen leaving the current line at the top of the scree |
| Ctrl+P |
Fetch the previous command from the history list, moving back in the lis |
| Ctrl+N |
Fetch the next command from the history list, moving forward in the lis |
| Alt+< |
Move to the first line in the histor |
| Alt+> |
Move to the end of the input history, i.e., the line currently being entere |
| Ctrl+R |
Search backward starting at the current line and moving ‘up’ through the history as necessary. This is an incremental searc |
| Ctrl+S |
Search forward starting at the current line and moving ‘down’ through the history as necessary. This is an incremental searc |
| Ctrl+K |
Delete the text from point to the end of the lin |
| Ctrl+U |
Delete backward from point to the beginning of the lin |
| Alt+D |
Delete from point to the end of the current word, or if between words, to the end of the next word |
| Ctrl+W |
Delete the word behind point, using white space as a word boundar |