Open In App

Shortcut to Move to the Beginning or Ending of a Command in Linux Terminal

In this article, we will learn how to move to the start and end of a command. We will demonstrate the key combinations in a Git terminal. The same key combinations work in other Unix style terminals too.

Moving to the Starting of the Command

Ctrl + A : The ‘Ctrl+A’ key combination moves the pointer to the start of the command. In the below gif image, you can see how pressing the ‘ctrl+A‘ combination after typing the command ‘touch index.html‘ moved the pointer to the start.



Moving to the Ending of the Command

Ctrl + E : The ‘Ctrl+E’ key combination moves the pointer to the end of the command. In the below gif image, you can see how pressing the ‘ctrl+E’ combination moves the pointer to the end i.e., at the end of ‘touch app.js‘.



Article Tags :