IPTraf is a free and open source interactive real time command-line based network monitoring and statistics application for Linux. it supports IP, TCP, UDP, ICMP, IGMP, IGP, IGRP, OSPF, ARP and RARP protocols and Local loopback, Ethernet interfaces, FDDI interfaces, SLIP, Asynchronous PPP, Synchronous PPP over ISDN, ISDN with Raw IP encapsulation, ISDN with Cisco HDLC encapsulation and Parallel Line IP network interfaces.
It comes with IP traffic monitor module, interface statistics module, TCP and UDP service monitor module and LAN statistics module.
How to install IPTraf on Ubuntu Linux
You can install IPTraf via your command-line based terminal application. Open the terminal app (ctrl+alt+t) and run below command. It will install the latest version of IPTraf on your system.
sudo apt-get install iptraf
After that run IPTraf via below command.
You can move using up and down keys and select option with the Enter key and back to the menu using x key. For the complete man pages run below command.
sudo iptraf -help