Why can't I use arrow keys in terminal on Debian 6? (nonroot)
You appear to have /bin/sh
as the login shell of your non-root user, and /bin/sh
point to dash. Dash is a shell designed to execute shell scripts that stick to standard constructs with low resource consumption. The alternative is bash, which has more programming features and interactive features such as command line history and completion, at the cost of using more memory and being slightly slower.
Change your login shell to a good interactive shell. On the command line, run
chsh -s /bin/zsh
(You can use /bin/bash
if you prefer.) Configure your user management program to use that different shell as the default login shell for new users (by default, the usual command-line program adduser
uses /bin/bash
).
Related videos on Youtube
ctype.h
Updated on September 17, 2022Comments
-
ctype.h over 1 year
When I am on a non-root user I cannot use ↑/↓ to list my previous commands, and if I am typing I can't use ←/→ to say, add in a directory or to correct the spelling.
Worse, I can't use Tab. I could write
/var/www/mylongsitena
and pressing Tab will not autocomplete it.It's extremely annoying. How can I change this? IIRC Debian etch and lenny didn't do this. How can I unto this change?
-
Admin about 13 yearsDoes this happen with a new non-root test user?
-
Admin about 13 years@mattdm: I am still fairly noob. i did su irc and tested it. So i suppose it happens on ALL non root users? @Tshepang: fresh install. and this happens to users i created last week and a few weeks ago
-
-
user4476006 over 7 yearsWhile this might somehow affect the up and down arrow keys (shouldn't though, unless "super" (windows) key is "stuck"), it certainly couldn't cause tab and left/right arrow keys from working properly.
-
hkara over 7 yearsMaybe it's because I am using a VNC connection (RealVNC 5.2.3 for windows 64 bits), so it could be that the "super" key is not handled correctly in the client or the VNC server.
-
hkara over 7 yearsOK, by googling even more I found that this is effectively a bug in the vnc server. See bug 679543 at debian.org .