Linux – Getting ;5D when hitting ctrl + arrow key in a Terminal on FreeBSD

freebsdlinuxsshterminalUbuntu

On centos I can skip a word by hitting ctrl + arrow (left or right) in a terminal. When I ssh into a FreeBSD box and I try the same pattern I get:

$ tail -f 20120412.log;5D;5D;5D

(each try = ;5D)

Is there a way to fix this? I am using Ubuntu 12.04 + Terminator.

Thanks in advance.

Best Answer

A .inputrc in your home directory will cause ctrl+left to stop working on Ubuntu (for example).

To get everything working, add the following to ~/.inputrc:

# Include system-wide inputrc, which is ignored by default when
# a user has their own .inputrc file.
$include /etc/inputrc
Related Topic