As I think your Del, Tab and arrow keys also didn't work. If you did echo $0
and you see /bin/sh
then you need to set your your shell to /bin/bash
instead. So run chsh -s /bin/bash
to change your login shell to bash
and check again your keys(Backspace, Del, Tab and arrow keys) if fixed.
Or you can make sure that your TTY is configured with the right characters by checking the output of stty -a
, and setting the erase character to match what's being sent with stty erase ^?
.
If you run stty -a | grep -w erase
, you will see something like this:
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?;
eol2 = M-^?;
If that is different changing login shell to bash
solve your problem but if didn't solve you can run stty erase ^?
to solve the problem and also did the same for your another keys(Del, Tab, Arrow keys).
echo $0
in terminal??? Please