CentOS / RHEL: Install iftop To Display Bandwidth Usage Per interface By Host

www.‮ruttual‬i.com
CentOS / RHEL: Install iftop To Display Bandwidth Usage Per interface By Host

To install iftop on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum or dnf package manager.

  1. First, make sure that you have the epel-release repository enabled on your system. This repository contains the iftop package. You can enable the epel-release repository by running the following command:
sudo yum install epel-release

or

sudo dnf install epel-release
  1. Once the epel-release repository is enabled, you can install iftop using the yum or dnf package manager:
sudo yum install iftop

or

sudo dnf install iftop

This will install iftop and all of the required dependencies.

To use iftop, run the iftop command and specify the interface that you want to monitor. For example:

sudo iftop -i eth0

This will display a real-time display of the bandwidth usage on the eth0 interface, grouped by host. You can use the h key to toggle the display of hostnames, and the s key to change the sort order.

Note: iftop requires root privileges to run, so you will need to use sudo to run the command.

For more information on using iftop, you can refer to the iftop man page or the iftop documentation.

Created Time:2017-10-16 14:38:41  Author:lautturi