tab instead of typing in ksh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tab instead of typing in ksh
# 1  
Old 02-01-2006
tab instead of typing in ksh

Does anyone know how to set up ksh, so I can use tab instead of typing every letter out for the commands? Also, how do I set it up, so I can type exit once to exit the shell instead of multiple times. Does anyone know a good reference link for ksh commands? Thank you.
# 2  
Old 02-01-2006
If you enable 'vi' mode you can use the vi commands to edit you command line.

So, instead of using a tab for auto completion, which is what I think you want, you would use ESCAPE (Esc) BACKSLASH ( \ )

So to enable, do the following
Code:
set -o vi

Then test it, for example

Code:
ls -l /etc/hos ESC BACKSLASH

That should auto complete the /etc/hosts file.

http://www.kornshell.com/doc/
This User Gave Thanks to DogDay For This Post:
# 3  
Old 02-01-2006
If you're using the Public Domain korn shell (pdksh), you can

set -o vi-tabcomplete

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

@ typing creates new line

Dear Concern, Please go through the article https://www.unix.com/hp-ux/134072-typing-sign-creates-new-line.html As per the article, we need to initiate below commands. But after creating new session, we face same problem. Please advise. stty intr "^c" stty kill "^u" Please find below... (6 Replies)
Discussion started by: makauser
6 Replies

2. Shell Programming and Scripting

Zero typing problem!

H, I I have this below script for removing the full path from a string which is indeed a filepath location if windows. It converts input \abc\asssh\abc To abc But if filename has 0 like: \abc\abc\00000Hgg Then its typing abc00000Hgg PLEASE note that its solaris. Script is: more... (10 Replies)
Discussion started by: nixhead
10 Replies

3. UNIX for Dummies Questions & Answers

No $ when typing cw

Hi As a dummy my question is very simple. When typing cw I've read (many times) that a '$' should appear at the end of the word I'm about to change. However, it doesn't, and in my case the word is instantly deleted and so ready to be changed! Can somebody tell me why this is, or maybe I... (4 Replies)
Discussion started by: joesh
4 Replies

4. UNIX for Dummies Questions & Answers

Typing in Japanese language

Hi. I am running Solaris 10,HPUX 11.31 and AIX 6.1. I am trying to get my system to write in Japanese. I can choose the Japanese language for the system to display, but I cannot figure out how to write in Japanese. I have set up my system, and Mozilla (including the menu and web pages) to display... (1 Reply)
Discussion started by: meeraramanathan
1 Replies

5. Shell Programming and Scripting

No output to CL when typing in CL.

Hello all, I am in a terminal on Solaris and something weird is happening... When I am typing I can't see what I am typing, although what I am typing is working. As is if I type the command and hit enter, the command runs. Anyone have a clue why or how I can make it display my typing? Is... (2 Replies)
Discussion started by: komputersman
2 Replies

6. UNIX and Linux Applications

Learn typing in Chinese

I have a burning desire to learn how to type in chinese (and after, probably with success, in another languages). How to do this, all symbols are needed, and methods of input also. And a map of chinese keyboar layout will be helpful. I want very much study program. (3 Replies)
Discussion started by: Xcislav
3 Replies

7. UNIX for Dummies Questions & Answers

Stuck after typing goto

uname -a returns: SMP Tue May 17 17:52:23 EDT 2005 i686 athlon i386 GNU/Linux I have many aliases beginning with "goto" so... if I type goto and then hit return (oops) A goto prompt pops up and I cant exit from it(I tried MANY key seqs) The only way to exit is to kill the term window... (2 Replies)
Discussion started by: rairey
2 Replies

8. UNIX for Advanced & Expert Users

Hiding Passwords while typing..

Hi, We need ur advice,... We are integrating our application (oracle) with OID,and OID is with another team. While integrating they have to provide their 'ADMIN-password' when the script prompts ,But the password they are about type is visible. If this is the case they are denying it,.... Is... (1 Reply)
Discussion started by: rrs
1 Replies

9. Programming

hide password typing

I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal? I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Discussion started by: ivancheung
2 Replies
Login or Register to Ask a Question