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‘.
- Terminal Mail and Linux Security Mail
- Formatted text in Linux Terminal using Python
- Cool Custom Welcome Messages on Linux terminal
- Custom commands for linux terminal
- How to copy a file's content from Linux terminal?
- How to Browse From the Linux Terminal Using W3M?
- Using Lynx to Browse the Web From the Linux Terminal
- Few Tips for Fast & Productive Work on a Linux Terminal
- Kali Linux - Terminal and Shell
- Basic System Controls with Terminal in Linux
- Chrome Inspect Element Tool & Shortcut
- Windows Shortcut Keys
- Step By Step Guide to Add Custom Keyboard Shortcut in Ubuntu
- Building a terminal based online dictionary with Python and bash
- Greeting By Your Favourite Movie Quotes in Rainbow Colors on Every Terminal Launch
- Interesting Commands on Mac Terminal
- How to find time taken by a command/program on Linux Shell?
- mindepth and maxdepth in Linux find() command for limiting search to a specific directory.
- Netstat command in Linux
- Practical applications of 'ls' 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 email@example.com. 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.