Cuelogic Blog Icon
Cuelogic Career Icon
Home > Blog > Product Development > Ubuntu- Not able to use arrow keys or backspace key

Ubuntu- Not able to use arrow keys or backspace key

Ubuntu- Not able to use arrow keys or backspace key

Recently I had to use ubuntu system for project work, I got credentials (username/password) using which I can ssh to ubuntu server. I logged into system and soon I realized something is wrong with my terminal, I was not able to use backspace or arrow keys, caused me so much agony that I could only lie in stupor, counting the spots dancing before my eyes. Being not able to use arrow keys/backspace key, I had to type in every command, so frustrating

As we know,when we are operating in ubuntu command console terminal,we type first few letters of command-name or file-name and press tab key instead of type the whole word.We also press up/down arrow key to find out history command we just typed.

This is common problem faced by newly added user.

How to solve this issues?

First,type this command:

cat /etc/passwd

In the output,we can find out that this new user use /bin/sh rather than /bin/bash as its shell

So,just edit /etc/passwd and change /bin/sh to /bin/bash in that line. ie. make /bin/sh point to bash