Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th August 2010, 09:02 AM
paulga Offline
Registered User
 
Join Date: Mar 2009
Location: WA
Posts: 124
linuxchrome
a quick question about auto complete

first how do I have an auto completion feature for scp ? I often need to 'scp ' a file to a remote server, then I type :
PHP Code:
scp someprogram paulga@pinherstforestrain.math.edu 
I 'd begin to type tab before or after the input of @. but the available choices are mainly : @localhost6, @localhost.localdomain, @localhost, etc.. which file records these hosts name?

second, to execute a program in current directory, I have to type ./program, how can I ommit the prefix, or I could type it as I type "octave",etc.

Thanks a lot.
Reply With Quote
  #2  
Old 18th August 2010, 10:10 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Re: a quick question about auto complete

The ssh/scp autocompletion uses several methods to obtain the possible hostnames. Looking in /etc/hosts and in ~/.ssh/known_hosts, ~/.ssh/known_hosts2, /.ssh2/hostkeys

If you want the current directory on your execution path you can add it to the shell's PATH variable
export PATH=.:$PATH
or
export PATH=$PATH:.

You may want to put this in your ~/.bashrc file
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 18th August 2010, 05:23 PM
paulga Offline
Registered User
 
Join Date: Mar 2009
Location: WA
Posts: 124
linuxchrome
Re: a quick question about auto complete

That works. Thanks a lot!
Reply With Quote
Reply

Tags
auto, complete, question, quick

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable auto complete in Fedora address tech291083 Using Fedora 8 10th December 2008 05:19 AM
Tab Auto Complete for "yum install ..."? SendDerek Using Fedora 3 11th November 2007 05:33 AM
GIMP Problems: No Auto Complete on Save xnd Using Fedora 4 16th November 2006 09:10 AM
Complete beginner question grandad Using Fedora 2 16th February 2006 08:37 PM
Question from a complete beginner (1) auricle Using Fedora 3 17th February 2005 06:29 PM


Current GMT-time: 23:02 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat