Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Ubuntu 10.10 server when I type htop the result is simply:

bash: htop: command not found

I know that there is some software which I can install that tells me what I have to install that provides the (in this example htop) command.

What do I have to install?

share|improve this question
up vote 5 down vote accepted

command-not-found Install command-not-found is what you are searching for :)

share|improve this answer
Thanks, this is it! :) sudo apt-get install command-not-found – Hristo Hristov Apr 7 '11 at 11:54
It won't take effect until you log out and log back in. It won't automatically take effect in existing shell sessions. – Jerry Seutter Mar 28 '13 at 15:52

Your Answer


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.