How to set history key in Solaris

Hi Solaris guys,

I just have my solaris 10 setup on x86 old box...
How can i get history key?
eg.
Linux using up/down arrow key to call history command...
HPUX using Esc-k

How can i do the samething in Solaris?

Thanks in advanced!

Regards,
gary

history as you use it is available in bash (shell). solaris uses sh as a standard shell. for your user type "bash" and you can use the up/down keys... if you like to use bash as your default shell, just edit the /etc/passwd for your user and you have bash as a default for your user.

I primarily use the Korn shell and I go through my history using Esc-k. To enable it, I put "export EDITOR=vi" in my .profile so that it is in my environment when I log in. It has the neat side of effect of being able to use vi commands at the shell prompt.

Thanks... guys.... :slight_smile: