category | contributors | created | tags | title | updated | |
---|---|---|---|---|---|---|
Tip |
|
2021-03-27 |
Command Line, macOS |
Move the cursor to any position in a macOS command |
2022-09-08 |
We often use the arrow keys to move the cursor when editing the command line on the terminal.
Imagine that the target position is somewhere in the middle of the command text, pressing the arrow keys multiple times takes time and isn't a comfortable process.
Fortunately, there is a shortcut that makes the process easier - holding down the alt key while clicking the mouse at the desired position. The following video demonstrates how to fix a typo in a command using this tip.