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
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
11 Answer
You are most likely using more limited shell like sh currently. You can check this with
cat /etc/passwd | grep $USERwhich 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