delete, arrows, and backspace not working in terminal when PWD is long

i am trying to work on a folder with a very long path. i am trying to work on a folder with a very long path. when i write commands i can't delete them with backspace or delete. the arrow key stop working too except the left key (i am working in a computer where arrow keys are also END, PgUp, PgDn, and Home)

the terminal where the keys don't work

the terminal where the keys don't work

when i move the same folder a few folders up everything works normally. is this a bug? what is happening?

the PWD: /home/ronen/Desktop/DevSecOps/week 1/git/task 2/git-day_2-git-excercises/training-instructor-master-chapter-2-git-day_2-git-excercises/chapter-2-git/day_2/git-excercises

echo $PS1 output: [\e]0;\u@\h: \w\a]${debian_chroot:+($debian_chroot)}\u@\h:\w\$

echo $COLUMNS output: 80

shopt checkwinsize output: checkwinsize on

1

1 Answer

You are most likely using more limited shell like sh currently. You can check this with

cat /etc/passwd | grep $USER

which will print you your config with the bash you are using at the end of the line. My guess your is /bin/sh

If you want to use more features, switch your shell to /bin/bash (or even other options like zsh if you have it) using chsh command.

you should have no issues with those keys with /bin/bash (I don't)

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like