How to shortcut?

When i am using commands on the command line, it is very difficult to type in all the commands again and again. There should be way to reuse the earlier used commands, by using up arrow, down arrow or tabsHow to enable it?I am using solaris version 5.10.
[282 byte] By [] at [2007-11-25 22:58:38]
# 1
Hello.If you use the "bash" shell (comes either wish Solaris or with the Companion CD) you can use "arrow up".If you use the standard Solaris shell you have no such possibility.Martin
at 2007-7-5 17:13:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
if i use this /usr/bin/bash in users .profile i can get them when ever i login as the user, am i right?Also whether this facility is available in 'ksh' shell?
at 2007-7-5 17:13:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

It is available (and in a far better form in my view) within the ksh. Just ensure that you have the -o vi option set (either set -o vi in the .profile) or use exec ksh -o vi from command line. You will then have access to the vi commands to recall and search command history (use Esc to enter/exit 'edit' mode).

at 2007-7-5 17:13:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
or in bourne shell or something like this historic shells u can usectrl+pctrl+nfor your history. It should work. Try google for other orientation i prehistoric shells.
matejuse at 2007-7-5 17:13:58 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...