How to invoke ESC+K

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to invoke ESC+K
# 1  
Old 10-30-2009
How to invoke ESC+K

How to invoke ESC+K to get recent commands in Korn Shell.
In some of the unix machine ESC+K is available and in some machines, it does not work. All of the machines that I work have Korn shell.
# 2  
Old 10-30-2009

set -o vi

usually does it for me.
# 3  
Old 10-30-2009
Very quick reply. Thx Scottn.

and also one more question. How to press ESC twice and get the full file name at shell prompt.
# 4  
Old 10-30-2009
I don't know Smilie

The (normal) ksh way would be ESC then backslash (\)
# 5  
Old 10-30-2009
Probably you are right, Scottn. It worked. Its been more than a year that I touched Unix. Just brushing my skills again. Thank you very much
# 6  
Old 10-30-2009
I just did:

set -o emacs

and the double escape thing worked... but not the escape-k!

Just read the man page, and emacs is the default, so that was a fat lot of help!

Last edited by Scott; 10-30-2009 at 07:05 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Esc-k and command history

Good afternoon, I am an Oracle DBA that is a bit stumped on the sudo and viewing historical commands. In the past on solaris 10 we would all first use our own username and password to putty to our unix box. Then in our /home/"my username"/.profile file it is setup to use sudo -u oracle for us to... (5 Replies)
Discussion started by: cptkirkh
5 Replies

2. UNIX for Dummies Questions & Answers

A trick to avoid ESC in vim

Hello, I find a trick to avoid pressing ESC without key-maping in vim. I am pleasure using this method, because ALT key is very comfortble for thumb to press. What's the trick? the ALT key. When you are in INSERT mod, press ALT+l switch to COMMAND mod without... (2 Replies)
Discussion started by: vistastar
2 Replies

3. Shell Programming and Scripting

Esc - key

hi i remember sometime back working in unix, when u dont recall a complete file name..u hit ESC key couple of times and actual complete name of that file which u looking for , gets visible For this to be enabled , do we need to make any entry in .profile file. In my current project, am... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

4. SuSE

xterm does not recognize CSI / ESC[

Hi all, I try to use my xterm from SUSE 11.1 as vt100/200 emulator. Problem is that my application sends the CSI as 8bit (0x9b) instead of the ESC+[ commands. With the default settings, xterm doesn't recognize this character as CSI, but prints an inverted question mark CSI works when I... (0 Replies)
Discussion started by: tritigr
0 Replies

5. Solaris

Epson ESC/P2 on solaris prints LD

I am hoping someone can help me with this little riddle. I have an oldish Epson ESC/P2 which I connected to a solaris10 box, with 2 queues, 1 with the solaris print filter so I can print from Solaris (works fine), and a second raw queue so that windows machines can print to it. The raw queue... (0 Replies)
Discussion started by: gdommett
0 Replies

6. Linux

ESC sequence on RHEL5

We have migrated one of servers from RH 2.1 to RHEL5 , some of the scripts on our machine use escape sequence to print output . Om RH 2.1 we were using echo echo "\033ERROR, which would give output ERROr in red . However the script does not work properly with RH5 and gives \033 as output . I... (2 Replies)
Discussion started by: amit1_x
2 Replies

7. Solaris

Esc key/Auto-fill

I'm an HPUX/Linux guy, who appreciates occasionally hitting the Esc key for Auto-fill... Does sunOS have anything like this? This is my 1st post, and I didn't want to waste it :D thanks, manuel (3 Replies)
Discussion started by: mr_manny
3 Replies

8. UNIX for Dummies Questions & Answers

how to install this utility CC k[ESC}

I am quite used to program this way and its frustrating when you find that the utility is not there the new system. I used give this in the command line CC k this used to give all the files starting with k one by one as I keep hitting the return key. like if I had 10 files... (5 Replies)
Discussion started by: navin10
5 Replies

9. Shell Programming and Scripting

append esc string

I have a request that is simple, but I can't figure out how to do it. I have a unix file that I want to append the following string to the front of the file <esc>&l1O<esc>(0U<esc>(s0p16.66h8.5v0s0b0T and an <esc>E to the end. I know that I could do something like cat... (2 Replies)
Discussion started by: beilstwh
2 Replies
Login or Register to Ask a Question