Welcome to WebmasterWorld Guest from 54.145.176.252

Forum Moderators: bakedjake

Message Too Old, No Replies

^[[A instead of history

How to make cursor keys work

     
9:57 am on Nov 11, 2011 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2007
posts:221
votes: 0


sshing on to a linux server
the root user gets command history when pressing the up cursor key
a created user gets ^[[A instead (and tab does not autocomplete)

Why? And how can I fix it?
10:04 pm on Nov 11, 2011 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2007
posts:221
votes: 0


Ah, apparently it came down to the command I used to create the user - adduser vs useradd, can't remember which is which. One sets the shell to /bin/sh when I wanted /bin/bash ! One quick chsh later and all works

(It even fixed my inability to change the default umask. Presumably my non bash shell wasn't running my .bashrc file. All's good :) )