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)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
When you hit the arrows, do you get the control keys?
Check which terminal type you have set? echo $TERM?
vt100, ansi, xterm, etc. .
Check which terminal type you have set? echo $TERM?
vt100, ansi, xterm, etc. .
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok
ASKER
In Korn or Bourne shell, we can issue "r a_substring_of_previous_co
& It would retrieve back that past command while for C-Shell it's
"! a_substring_of_previous_co
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 .....