Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

History Stack with up and down keys while telneted into an AIX box.

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Occasiaonally I have to telnet into a client's AIX box.

It's usually with short notice and no time to play around with settings.
I haven't been able to get the up and down keys to work.
Is there a particular character setting that needs to be tweeked to achieve this?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an AIX guru, but just some general UNIX help - maybe this applies to AIX and maybe it doesn't...

Enter -

and see if you're running sh as the shell - it's one of the few shells that doesn't have command history. If it turns out this is the case, you can change your login shell to one you like using the chsh command and the path to the shell's binary, for example, something like -
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, instead of arrow keys - try Ctrl-P (for previous) and Ctrl-N (for next) to scroll through history. Not sure why this happens sometimes, but I think it might have something to do with character-code mappings.

(edit - googled and found more on this. And something that looks specific to AIX.)

Good luck
[ February 10, 2006: Message edited by: Nathan Pruett ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Changing shells didn't work but I'll try the ctl commands.

Thank you Nathan
 
Madhu Manoharan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if this will work either, I cant verify it right now but-

You can enable vi mode of editting the command line by first typing -
set -o vi

After that you can type "esc" when you want to move in and out of the vi mode.

So to access your history - type "esc" and then type "k" to go above and "j" to go below in your history.

Type "esc" to come back to command mode.

All other commands used in VI will work in the vi mode.

M
[ February 11, 2006: Message edited by: Madhu Manoharan ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic