Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-31-2007, 07:57 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 3
Rep:
|
ksh command completion
I just started using a Linux workstation and noticed that the command line completion operation doesn't work with I enter the key stroke "esc esc". I'm using ksh shell with the variables EDITOR = vi and VISUAL = vi.
I logged onto our HP UNIX workstation and the key stroke "esc esc" completes the command but it doesn't on the LINUX workstation. Is there something else I need to set.
Roger
|
|
|
10-31-2007, 09:35 PM
|
#2
|
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
|
in ksh, use esc \ -- escape key followed by the reverse back slash, for completion of file names. hmm, just looked back and you said completion of command lines. I played with the esc esc and it doesn't do anything. So, I'm not totally clear on what you were expecting.
I have in my .profile
ENV=$HOME/.kshrc
export ENV
and in my .kshrc
set -o vi
The `set -o vi` is so that the esc gets me into vi mode, then h j k l navigate left down up right through previous commands and I can edit them using vi keystrokes. Return submits the command.
Don't know if this helps or not. Hope so.
|
|
|
11-01-2007, 12:48 AM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 3
Original Poster
Rep:
|
Erdos 4
I also have the command: set -o vi in my .profile file.
I have access to a HP UNIX workstation and a Linux workstation both machines are running ksh. The command line completion works differently on the two machines. For example when I type on the HP UNIX machine:
cd /pro followed by pressing the esc key twice
the command is completed to be:
cd /proj/
On the Linus machine when I type the same thing:
cd /pro followed by pressing the esc key twice nothing happens.
Roger
|
|
|
11-01-2007, 05:19 PM
|
#4
|
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
|
ah, so you are talking about filename completion.
type `cd /pro` followed by esc-\, the escape key followed by the reverse backslash,
and you will get `cd /proj/`
I haven't used HP/UX, but it sounds like they are the odd ones out. BSD and Solaris both do it the way I describe. I don't have a linux box sitting right here at the moment, but I would try it and see.
|
|
|
11-01-2007, 06:51 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 3
Original Poster
Rep:
|
Erdos 4
esc\ works thanks.
Roger
|
|
|
All times are GMT -5. The time now is 01:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|