I'm using HP-UX OS and want to use previously typed command, as how I'm using in Linux Ctrl+r for ease access in the HP-UX command line.
How to get the previously used command in HP-UX reverse search
ksh;command history
If your not familiar with vi or emacs prompt commands the best would be to use the fc shell built-in command look at the fc help into the  man sh-posix manpage. Use the mouse to copy paste the commands. The HP-UX shell is /usr/bin/sh the POSIX shell which command prompt is close to the korn shell, by default it is set to the vi command mode Esc will put the prompt in command mode, that mode is similar to the vi command mode.Then you can hit:  k to move backwards or j to move forward  in the history.i, a, A, cw or cW  will put the prompt back in edit mode (cw means change word).  /pattern will search for the first command matching pattern. Ifyou type n (n means next) it will look backwards to nextoccurrence of pattern into the history, N will looks into the otherdirection.If you prefer the emacs mode like in bash,  use set -o emacs command.  Arrows keys should not works, use instead Ctrl commands : Ctrl-p  previous commandCtrl-n  next commandCtrl-f  cursor move forwardCtrl-b  cursor move backwardsCtrl-a  begin of lineCtrl-e  end of lineCtrl-r   Search for string in the history (another ctrl-r will go to the next occurence)