To install iftop
on CentOS or Red Hat Enterprise Linux (RHEL), you can use the yum
or dnf
package manager.
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
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 usesudo
to run the command.
For more information on using iftop
, you can refer to the iftop
man page or the iftop
documentation.