Dec 15, 2003 #1 CALYAN Programmer Joined Apr 23, 2001 Messages 39 Location US I want to get an command previously typed by pressing arrow key how to do it?
Dec 16, 2003 #2 hadel Technical User Joined Aug 17, 2003 Messages 26 Location 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 #3 RanganathRamachandra Programmer Joined Nov 24, 2003 Messages 65 Location IN run bash Upvote 0 Downvote
Dec 16, 2003 Thread starter #4 CALYAN Programmer Joined Apr 23, 2001 Messages 39 Location US thanks ESC + K works fine Upvote 0 Downvote
Dec 18, 2003 #5 gerudman IS-IT--Management Joined Feb 12, 2002 Messages 91 Location 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 Joined Feb 21, 2003 Messages 623 Location 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 Joined Apr 1, 2002 Messages 16 Location 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 Joined Dec 18, 2001 Messages 2 Location US If your logged on as root you can just press "r". Upvote 0 Downvote