terminal go one word forward code example

Example 1: move cursor faster in terminal mac

Move to the start of line. Ctrl + a
Move to the end of line. Ctrl + e
Ctrl + Left Arrow or Alt+B or Esc and then B – moves the cursor back one
word at a time.
Ctrl + Left Arrow or Alt+B or Esc and then F – moves the cursor back one
word at a time.

Example 2: navigate to end shell

Just press "CTRL + e" to navigate to the end and "CTRL + a" to navigate
to the beginning of the your shell command line :)