How many times do you find yourself using arrow keys to scroll to the beginning or the end of line of the command line in bash terminal? Do you use backspace to delete every character of what you type to clear the command line? Well, if you answer “yes” to any of the two questions, continue reading.

I, myself, have been doing this a lot because I couldn’t remember the shortcut keys to do those tasks. So, I decided to write them here as a reference that could be referred to in the future. You can easily find the same or even thorough information on the web.

<th bgcolor="#f8f8ff">
  What it does
</th>
<td align="left">
  Delete to the end of line
</td>
<td align="left">
  Delete to the end of current word
</td>
<td align="left">
  Delete to the start of current word
</td>
<td align="left">
  Move to the start of line
</td>
<td align="left">
  Move to the end of line
</td>
<td align="left">
  Move one word to the left
</td>
<td align="left">
  Move one word to the right
</td>

I hope those shortcuts could save you some time and the fingers from getting sore.