sudo apt update sudo apt install htop # To run htop # or for Ubuntu versions before 16.04 sudo apt-get update sudo apt-get install htop # To run htop