nethogs command not found

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

Introduction

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

nethogs: command not found

or when using sudo you get the following error message

sudo: nethogs: command not found

Solutions to nethogs: command not found

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

In Ubuntu nethogs is provided by nethogs package.

nethogs is:

NetHogs is a small ’net top’ tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded.

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

sudo apt-get -y install nethogs

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

You can also use apt command to install nethogs.

sudo apt -y install nethogs

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

sudo aptitude install nethogs

Summary

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