Dec 15, 2003 #1 CALYAN Programmer Apr 23, 2001 39 US I want to get an command previously typed by pressing arrow key how to do it?
Dec 16, 2003 #2 hadel Technical User Aug 17, 2003 26 AE If u running ksh use esc+k key combination. make sure that ur $SHELL=ksh. or ksh -o vi Upvote 0 Downvote
Dec 16, 2003 Thread starter #4 CALYAN Programmer Apr 23, 2001 39 US thanks ESC + K works fine Upvote 0 Downvote
Dec 18, 2003 #5 gerudman IS-IT--Management Feb 12, 2002 91 ZA The reason why Esc+k works, is because the following lines have probably been added to your .profile file: export EDITOR=vi export HISTFILE=~/.sh_history export HISTSIZE=50 Upvote 0 Downvote
The reason why Esc+k works, is because the following lines have probably been added to your .profile file: export EDITOR=vi export HISTFILE=~/.sh_history export HISTSIZE=50
Dec 19, 2003 #6 Ygor Programmer Feb 21, 2003 623 GB If you really want to use the arrow keys then run "keysh" which is an extension of the standard Korn-shell. Upvote 0 Downvote
If you really want to use the arrow keys then run "keysh" which is an extension of the standard Korn-shell.
Dec 29, 2003 #7 dreammer Technical User Apr 1, 2002 16 US On POSIX shell, try 'set -o vi' then use Esc + K Does it work too? Upvote 0 Downvote
Jan 5, 2004 #8 heybahler IS-IT--Management Dec 18, 2001 2 US If your logged on as root you can just press "r". Upvote 0 Downvote