How to list the various network devices on your Linux system and show the traffic rates.

Posted: December 17, 2013. At: 1:42 PM. This was 4 years ago. Post ID: 6750
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

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.

ubuntu ~ $ sudo apt install ethstats

Example usage of this command is shown below. This shows the amount of data transferred over the network. I was only using a SSH connection in this example, this does nto show much data transferred.

ubuntu ~ $ ethstats
total:     0.00 Mb/s In     0.00 Mb/s Out -      1.0 p/s In       0.0 p/s Out
  eth0:    0.00 Mb/s In     0.00 Mb/s Out -      1.0 p/s In       0.0 p/s Out
  tun1194:    0.00 Mb/s In     0.00 Mb/s Out -      0.0 p/s In       0.0 p/s Out
total:     0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.9 p/s Out
  eth0:    0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.9 p/s Out
  tun1194:    0.00 Mb/s In     0.00 Mb/s Out -      0.0 p/s In       0.0 p/s Out
total:     0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.9 p/s Out
  eth0:    0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.9 p/s Out
  tun1194:    0.00 Mb/s In     0.00 Mb/s Out -      0.0 p/s In       0.0 p/s Out
total:     0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.2 p/s Out
  eth0:    0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.2 p/s Out
  tun1194:    0.00 Mb/s In     0.00 Mb/s Out -      0.0 p/s In       0.0 p/s Out
total:     0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.2 p/s Out
  eth0:    0.00 Mb/s In     0.00 Mb/s Out -      0.2 p/s In       0.2 p/s Out
  tun1194:    0.00 Mb/s In     0.00 Mb/s Out -      0.0 p/s In       0.0 p/s Out
^C

This is another useful Linux command to try out occasionally. The dstat utility may also show the same information. The below example will show a live updating feed of network packets transferred to and fro.

ubuntu ~ $ dstat --net
-net/total-
 recv  send
   0     0
  80B  562B
  40B  244B
  40B  244B
  40B  244B
  40B  244B
  40B  244B
  40B  244B^C
1 responses to “How to list the various network devices on your Linux system and show the traffic rates.

Leave a Reply