Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Edit - please see the same question on Unix Stack Exchange.

What is the equivalent of Windows' CTRL-Right and CTRL-Left ?

share|improve this question

closed as off topic by ripper234, Tom Wijsman, studiohack Apr 9 '11 at 16:28

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Should this be moved to See also this dup -… – ripper234 Apr 8 '11 at 8:33
rather than move it to Unix.SE and have it closed as a dupe there, I just closed it here...Seems like you got your answer so hope that works... – studiohack Apr 9 '11 at 16:29
up vote 11 down vote accepted

Alt-f moves forward, Alt-b moves backwards. But that's not all! Ctrl+a moves to beginning of line, Ctrl+e moves to end of line, Ctrl+r performs an interactive history search, which is very useful. For many more keybindings, comb your way through man bash.

share|improve this answer

Add these two lines to your ~/.inputrc file:

"\eOC": forward-word
"\eOD": backward-word

and press Ctrl-x Ctrl-r to reread the file to make the changes active in your current session.

You will be able to use Ctrl-Right and Ctrl-Left to move right or left word by word.

share|improve this answer
@Gilles: Thanks, I meant to include that but forgot. – Dennis Williamson Oct 30 '10 at 1:54
Very nice, +1. Not accepted, as this is not as scalable for me because I have many different computers and work and don't feel like changing my user preferences on all of them. But very nice nonetheless. – ripper234 Oct 30 '10 at 17:03

Not the answer you're looking for? Browse other questions tagged .