Electricmonk

Ferry Boender

Programmer, DevOpper, Open Source enthusiast.

Blog

Disable Ubuntu command not found

Sunday, February 17th, 2008

Ubuntu 7.10 has this feature where, if you mistype a command on the shell, it’ll bother you with useless information about how you can install that application:

tiagoboldt@Niath:~$ gedit
The program 'gedit' is currently not installed. You can install it by typing:
sudo apt-get install gedit
bash: gedit: command not found
tiagoboldt@Niath:~$

It’s pretty annoying if you do a lot of work on the commandline and each time you mistype a command you have to wait for up to a full second before the command fails. I keep thinking I accidentally ran some command which is now wiping my disk. I’m sure it’s handy for noobs, but not for commandline junkies.

To get rid of it, type:

sudo aptitude purge command-not-found

And it won’t bother you anymore.

The text of all posts on this blog, unless specificly mentioned otherwise, are licensed under this license.