The iptraf-ng utility is a console-based network statistics monitor that provides real-time IP traffic graphs, TCP/UDP connection breakdowns, and interface packet counters. Minimal server installations, bare container images, and newly provisioned cloud instances do not include iptraf-ng by default, resulting in the bash: iptraf-ng: command not found error when running network inspections.
Install iptraf-ng on Ubuntu, Debian, and Derivatives
On Debian and Ubuntu systems, iptraf-ng is maintained in the standard software repositories:
- Update your local package repository index:
sudo apt update - Install the
iptraf-ngpackage:sudo apt install -y iptraf-ng - Confirm successful installation and run the tool with administrative privileges:
which iptraf-ng sudo iptraf-ng
Install iptraf-ng on RHEL, CentOS, Rocky Linux, and Fedora
On enterprise Linux distributions, iptraf-ng is available either directly or through the EPEL repository:
- On RHEL or Rocky Linux, enable EPEL if not already present:
sudo dnf install -y epel-release - Install
iptraf-ngvia DNF:sudo dnf install -y iptraf-ng - On Fedora systems, run
sudo dnf install -y iptraf-ngdirectly.
Install iptraf-ng on Arch Linux and Alpine Linux
For rolling distributions and minimal container systems:
- On Arch Linux, install directly from the extra repository:
sudo pacman -Syu iptraf-ng - On Alpine Linux, install via apk:
apk update && apk add iptraf-ng - Launch the interactive IP traffic monitor by executing
sudo iptraf-ng -i allto inspect aggregated bandwidth across all active network adapters.