How to go back or forward a word in bash environment? [duplicate]
There is M-b
and M-f
for moving backwards and forwards to the current word, respectively. Here M
is the Meta or Esc key or a combination, like Ctrl+Meta. The section Commands for Moving in the bash
manpage lists these and other shortcuts available for moving on the bash shell.
The manual also describes how to customize your bash settings so you can use your known Ctrl + ←/→ to skip words.