There are some basic requirement first. Make sure you install
- libpcap and libpcap-devel
- ncurses and ncurses-devel
To install iftop on Linux Mint,
# apt-get install iftop
To install iftop on CentOS
# yum install iftop
(Make sure you have EPEL repository configured)
To run iftop, simply run
# iftop -i eth0