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‘.
- How to Browse From the Linux Terminal Using W3M?
- Using Lynx to Browse the Web From the Linux Terminal
- Custom commands for linux terminal
- How to copy a file's content from Linux terminal?
- Formatted text in Linux Terminal using Python
- Cool Custom Welcome Messages on Linux terminal
- Few Tips for Fast & Productive Work on a Linux Terminal
- Terminal Mail and Linux Security Mail
- SED command in Linux | Set 2
- od command in Linux with example
- 'dd' command in Linux
- who command in Linux
- du Command in LINUX
- while command in Linux with example
- Gzip Command in Linux
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.