The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
rsh as super user without password prompt TheMightyUrrrrf UNIX for Dummies Questions & Answers 1 02-13-2008 07:50 AM
user prompt doesn't pop up with rsh command ronenalalush UNIX for Advanced & Expert Users 1 02-13-2007 03:45 AM
User Prompt during batch script process bond007jlv Shell Programming and Scripting 2 11-30-2006 12:12 PM
Prompt User for Pgm Output Destination termite Shell Programming and Scripting 0 02-28-2006 09:11 AM
User friendly debut Shell Programming and Scripting 3 11-09-2005 04:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-15-2008
Registered User
 

Join Date: Feb 2008
Location: Fort Lauderdale, FL
Posts: 10
User friendly Unix ksh prompt to type directories/files

Hello,

I wanted to setup user friendly ksh command prompt, by typing first character of files or directories and then tab bring up whole word. No need to type whole file/directory/command names.

Example:

cat a file like university
just typing un and then tab bring up whole university wod.

Any help is greatly appreciated.

Thanks.

Abdur Rouf
Reply With Quote
Forum Sponsor
  #2  
Old 02-15-2008
joeyg's Avatar
Moderator
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 983
Wink Some of this may already be present in system

Assuming you have a file called university at your current directory location, you could type at the prompt:

> cat un

then hit the [Esc] key twice should fill in the rest of the word for the filename

This works for many unix commands.

Is it that you are trying to avoid typing the 'cat' command first?
Reply With Quote
  #3  
Old 02-15-2008
Registered User
 

Join Date: Jan 2007
Posts: 366
Quote:
Originally Posted by joeyg View Post
Assuming you have a file called university at your current directory location, you could type at the prompt:

> cat un

then hit the [Esc] key twice should fill in the rest of the word for the filename

This works for many unix commands.

Is it that you are trying to avoid typing the 'cat' command first?
If <ESC><ESC> doesnt give you the full file name, it means there are at least 2 files starting with the same pattern.

To see which are those files type:
<ESC>=
Reply With Quote
  #4  
Old 02-15-2008
Registered User
 

Join Date: Feb 2008
Location: Fort Lauderdale, FL
Posts: 10
User friendly Unix ksh prompt to type directories/files

Yes it's woking and that is what I'm looking for . Thank you very much for your reply.
Before I use to work with bash where I used tab instead of Esc.

Thanks again.

Abdur Rouf
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0