Command history in AIX

Hi All,

I would like to know how to get the command history from the prompt. For example in dos, if we hit the Up Arrow, we get the previous command. I am not getting this in my telnet session (AIX) at the prompt.

I know that if I type history command it will give a list of cammands I typed earlier. But what i need is the short cut key were like the up arrow in dos were in i will get the previous command at the prompt.

Thanks in advance...

Priya

Assuming your shell is ksh and you're used to vi:

$ set -o vi
$ <esc>k

Basically the set command sets your keyboard to use the same basic key commands you can use in vi to get arround. The esc key puts you into command mode just like in vi. From there you can use 'k' to move up in the history, 'j' to move down, 'l' to move left and 'h' to move right. You can also hit '/search term' to search for a command. Those are the ones I use most of the time.

You can also set -o emacs if you know the keystrokes for emacs.

Carl

It worked....

Thank you very much Carl.....

Priya