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

When I fail to type correctly a command, for example:

luca@mostro:~$ sido
No command 'sido' found, did you mean:
 Command 'sudo' from package 'sudo' (main)
 Command 'sudo' from package 'sudo-ldap' (universe)
 Command 'sid' from package 'tendra' (universe)
sido: command not found

The command interpreter try to guess what program I wanted to run. This is very annoying to me (I associate it to google behavior).

Is it possible to remove this feature? And how?

I supposed that it were setup in my local ~/.bashrc, but the fast-check failed miserably...

share|improve this question
    
I personally like this behavior. –  nikhil Jun 7 '12 at 9:41

2 Answers 2

up vote 13 down vote accepted
sudo apt-get remove command-not-found
sudo mv /usr/share/command-not-found /usr/share/command-not-found.bak

You need to restart your shell for the change to take affect.

share|improve this answer
    
Thank you. I feel more comfortable now. –  Luca Jun 4 '12 at 21:05
    
Don't move things around under /usr that belong to packages. In the case of /usr/share/command-not-found, that directory belongs to the command-not-found-data package. Now your package manager will be confused. –  ruief 10 hours ago
sudo apt-get remove command-not-found command-not-found-data

Contrary to the other answer, you should not manually move things around under /usr unless you're trying to defenestrate your package manager.

share|improve this answer

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.