Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When using autocompletion it reveals web sites and file names.

So if i type scp goo and then type the Tab key it displays

gooey.zip goo.freelogs.com: googleads.g.doubleclick.net: google.tucows.com:
googleads2.g.doubleclick.net:  google-earth-stable_current_amd64.deb   googlus.com:
googleadsense.ya.com:

The question is, where does it get these web sites from in the autocomplation process. I know the gooey.zip file is obviously a file in my directory, but where are the web sites coming from?

PS: I have uninstalled Zeitgeist if that matters

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It got it from names of files in current directory, /etc/hosts file, ~/.ssh/config file and ~/.ssh/known_hosts file.

Check the script /usr/share/bash-completion/completions/scp from package bash-completion.

share|improve this answer
    
Thanks, I had an entry of sexybabesx.com and was wondering where it came from, now I know, the host file, I have a host block file with all of the bogus sites so they don't come up. –  Meer Borg May 10 '13 at 22:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.