htop command not found

In this troubleshooting guide we learn how to fix htop command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

htop: command not found

or when using sudo you get the following error message

sudo: htop: command not found

Solutions to htop: command not found

How To Fix htop: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu htop is provided by htop package.

htop is:

Htop is an ncursed-based process viewer similar to top, but it allows one to scroll the list vertically and horizontally to see all processes and their full command lines.

Tasks related to processes (killing, renicing) can be done without entering their PIDs.

To fix this problem, we can install more using the command below.

sudo apt-get -y install htop

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install htop.

sudo apt -y install htop

Or if you have aptitude installed you can use the following command.

sudo aptitude install htop

Summary

In this tutorial we learn how to fix htop command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.