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

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

link|improve this question

64% accept rate
Should this be moved to unix.stackexchange.com? See also this dup - unix.stackexchange.com/questions/10806/… – 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
feedback

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

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

2 Answers

up vote 5 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.

link|improve this answer
feedback

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.

link|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
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.