Arrow keys in terminal: [[A^[[B^[[D^[[C

If you try use arrow keys in terminal and get sth like: [[A^[[B^[[D^[[C
just do:
cd /etc
sudo nano passwd
and replace /bin/sh to /bin/bash near your username