kerneltop command not found

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

Introduction

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

kerneltop: command not found

or when using sudo you get the following error message

sudo: kerneltop: command not found

Solutions to kerneltop: command not found

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

In Ubuntu kerneltop is provided by kerneltop package.

kerneltop is:

kerneltop shows Linux kernel function information usage (modules not included) like top do for process, and is derived from readprofile.

It needs profiling enabled on kernel at boot time.

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

sudo apt-get -y install kerneltop

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

You can also use apt command to install kerneltop.

sudo apt -y install kerneltop

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

sudo aptitude install kerneltop

Summary

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