Welcome to WebmasterWorld Guest from 54.163.23.73

Forum Moderators: bakedjake

Message Too Old, No Replies

^[[A instead of history

How to make cursor keys work

     

Status_203

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

5+ Year Member



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?

Status_203

10:04 pm on Nov 11, 2011 (gmt 0)

5+ Year Member



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 :) )
 

Featured Threads

Hot Threads This Week

Hot Threads This Month