Shell awk real-time monitoring network card traffic script (common application 2)

  
 

Get the NIC traffic through the 3rd party tool, this must be very clear. In fact, the effect can be achieved by scripting. Below is the data compiled in my personal work. The following is a shell script to count NIC traffic.



  • Implementation principle:

    [chengmo@localhost ~]$ cat /proc/net/devInter-

  • Copyright © Windows knowledge All Rights Reserved