Disable Ubuntu No Command 'X' found, did you mean

I type pretty fast when I'm on the command line and periodically, for commands that don't really matter, I don't check what I've typed and just press enter. This is especially true for directory listings which I have "ls -la" pretty much hard coded into my fingers. This particular one I mistype as "ls- la" all the time.

On Ubuntu, and other "helpful" platforms, there is a package installed called "command-not-found" which will take about 2-3 seconds to come up with a list of command it thinks you might have wanted to type but you haven't got installed right now.

$ ls- la
No command 'ls-' found, did you mean:
 Command 'lsh' from package 'lsh-client' (universe)
 Command 'lsw' from package 'dwm-tools' (universe)
 Command 'ls' from package 'coreutils' (main)
ls-: command not found

This is incredibly annoying.

To remove the problem, just uninstall the packages, and restart your bash session.

apt-get remove command-not-found command-not-found-data

You might need a sudo in front of that if you haven't killed that off yet.

The end result, the traditional and almost instant command not found response!

$ ls- la
bash: ls-: command not found

Ah, bliss.