The ethstats command available on a Linux system allows you to show the network interfaces installed in your machine and the data transfer rates if they are connected to a network and they are not idle.
Install this script using this command.
[email protected]:/home/jason# apt install ethstats
Example usage of this command is shown below. I left it running whilst I did a tiny bit of web browsing and this shows the amount of data transferred over the network.
[email protected]:~$ ethstats eth0: 0.00 Mb/s In 0.00 Mb/s Out - 0.0 p/s In 0.0 p/s Out eth0: 0.00 Mb/s In 0.00 Mb/s Out - 0.0 p/s In 0.2 p/s Out eth0: 0.00 Mb/s In 0.00 Mb/s Out - 0.0 p/s In 0.0 p/s Out eth0: 0.92 Mb/s In 0.06 Mb/s Out - 91.5 p/s In 50.9 p/s Out eth0: 2.01 Mb/s In 0.11 Mb/s Out - 197.4 p/s In 108.2 p/s Out eth0: 0.29 Mb/s In 0.03 Mb/s Out - 35.0 p/s In 21.9 p/s Out ^C
This is another useful Linux command to try out occasionally.