Link to home
Start Free TrialLog in
Avatar of sunhux
sunhux

asked on

Recalling previous commands in Solaris by pressing Up arrow key


I remember on Digital Unix & OpenVMS, I can always recall previous command
by pressing the Up arrow key.

How can I achieve this on Solaris 10 (ssh login using putty)?
Avatar of sunhux
sunhux

ASKER


In Korn or Bourne shell, we can issue "r a_substring_of_previous_command"
& It would retrieve back that past command while for C-Shell it's
"! a_substring_of_previous_command".

But this is not what I wanted.  I wanted that by pressing Up arrow key once,
it would recall the last command & by pressing Up arrow key twice, it would
recall the last last command & so on .....
ASKER CERTIFIED SOLUTION
Avatar of Abhishek_Chib
Abhishek_Chib
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arnold
When you hit the arrows, do you get the control keys?
Check which terminal type you have set? echo $TERM?
vt100, ansi, xterm, etc. .
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux

ASKER



Arnold, I'm on xterm.


To use bash, is it better to change the Shell in
/etc/passwd  or  insert a line "/bin/bash"  into
$HOME/.profile of that user?  Which method would
enable recall of previous commands using Up arrow
key?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunhux

ASKER

ok