14. Bash Shell - Cursor Movement
Contents
We can quickly move the cursor to a specific location with the shortcut key provided by the shell.
Move cursor to the new line
We can move the cursor to the beginning of the new line:
|
|

before moving

after moving
Move cursor to the beginning
We can move the cursor to the beginning of the line:
|
|

before moving

after moving
Move cursor to the end
We can move the cursor to the end of the line:
|
|

before moving

after moving
Move cursor forward a char
We can move the cursor to the next char:
|
|

before moving

after moving
Move cursor backward a char
We can move the cursor to the previous char:
|
|

before moving

after moving
Move cursor forward a word
We can move the cursor to the end of the word:
|
|

before moving

after moving
Move cursor backward a word
We can move the cursor to the the first char of the word:
|
|

before moving

after moving
Clear the screen
We can clear the screen:
|
|

before clearing

after clearing
References 8.4.1 Commands For Moving
Author Dong Chen
LastMod Fri Feb 15 2019