Sometimes, you can not use a program because you mistype the command or the program is not installed.
There is a Debian package, command-not-found, which can help you to find the right program.
To install it :
root@localhost:~# apt-get install command-not-found
To use it, put the following line in your own .bashrc :
Here is an example. I want to open an .odt document with the gnome-open command. I have mistyped it and here is the suggestion command-not-found can provide :
fool@localhost:~$ gnom-open my_document.odt
No command ‘gnom-open’ found, did you mean:
Command ‘gnome-open’ from package ‘libgnome2-0’ (main)
gnom-open: command not found
Let’s check the content of the libgnome2-0 package :
root@localhost:~$ dpkg -L libgnome2-0 |grep bin
If you want really want to use gnome-open, avoid typing gnom-open as I did just before.