• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nethogs: command not found

by Deepika

“nethogs” is a Linux tool that allows system administrators to monitor bandwidth usage on their systems, per process. This means that it shows the amount of network bandwidth that each process is consuming in real-time.

“nethogs” provides a simple and intuitive interface that displays the process name, its PID (process ID), the amount of data it has received, the amount of data it has sent, and the total amount of data it has used. This information is updated in real-time, allowing system administrators to quickly identify which processes are using the most bandwidth and taking up resources on their systems.

“nethogs” can be especially useful for system administrators who want to identify the cause of slow network performance, monitor bandwidth usage by different applications, or optimize their network usage by limiting the bandwidth available to certain processes. It can also be used to diagnose network issues and track down rogue processes that may be consuming excessive bandwidth.

If you encounter the below error while running the command nethogs:

nethogs: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install nethogs
Ubuntu apt-get install nethogs
Alpine apk add nethogs
Arch Linux pacman -S nethogs
Kali Linux apt-get install nethogs
Fedora dnf install nethogs
OS X brew install nethogs
Raspbian apt-get install nethogs

nethogs Command Examples

1. Start nethogs as root (default device is eth0):

# sudo nethogs

2. Monitor bandwidth on specific device:

# sudo nethogs device

3. Monitor bandwidth on multiple devices:

# sudo nethogs device1 device2

4. Specify refresh rate:

# sudo nethogs -t seconds

Filed Under: Linux

Some more articles you might also be interested in …

  1. RedHat / CentOS : Managing software RAID with mdadm
  2. pmount Command Examples in Linux
  3. What causes iptables to load every time after a reboot even when it’s completely turned off
  4. CentOS / RHEL 6,7 : How to delete an iSCSI Target on the initiator (iSCSI client)
  5. How to Disable NUMA in CentOS / RHEL 6,7
  6. do-release-upgrade: command not found
  7. “error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory” ‘java -version’ error on Startup
  8. CentOS / RHEL : Managing password ageing for users using chage (with practical Examples)
  9. How to Clone Linux disk partition over network using dd
  10. fprintd-delete Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright