OS X Terminal equivalent of Ctrl+Left / Ctrl+Right In Windows and Linux I could always hit ctrl+&#x2190; or ctrl+&#x2192; to skip a word to the left or right in the terminal.  In text editors it seems that &#x2325;+&#x2190;/&#x2192; works, but no dice in the terminal.  I've searched Google and found nothing except a Wikipedia page that claims &#x2325;+B/F does the job, but all it does is print ∫ and ƒ characters to my terminal (or ı and Ï if I hold &#x21E7;). Any ideas?
This was driving me crazy too, however I didn't want a Terminal-specific fix as I don't use Terminal, and being able to SSH into my OSX box had to use the correct keybindings too.

Also, personally, I didn't care about the &#x2325; key as discussed earlier; I wanted to maintain the ctrl+&leftarrow;/&rightarrow; combination that I'm used to on Linux.

To solve this problem, I added the following to my ~/.profile:

bind '"\e[5C": forward-word'
bind '"\e[5D": backward-word'
bind '"\e[1;5C": forward-word'
bind '"\e[1;5D": backward-word'


Note the first two apply to bash in Terminal; the last two apply to bash in iTerm2 and incoming ssh connections. Don't ask me why the keyboard emulation is different ;)

For the record, I was able to find what the keycodes actually were thanks to a hint from this stackoverflow answer: You can run cat &gt; /dev/null to monitor the exact keycodes sent during a key combination.

(Note that for me, when I run cat &gt; /dev/null and press ctrl+&leftarrow; it produces ^[[1;5D. Your exact keycode may differ, but the first ^[ is represented as \e, as shown in my example code.)

BTW, if you want to see all active bash keybindings, run bind -p.