Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxチュートリアル >> linux閲覧メインネットワークウェブフロー流量

linux閲覧メインネットワークウェブフロー流量

  

#!/bin /bash#network#Mike.Xuwhile:; dotime = 'date +%m " - "%d "; "%k":"%M '日='日付+%m" - "%d'rx_before = ' sed -n" 8" p" awk '{print $ 2}' | cut -c7-'tx_before =' ifconfigeth0 | sed -n" 8" p" awk '{print $ 6}' | cut -c7-眠り2rx_after = 'ifconfigeth0 | sed -n" 8" p" awk '{print $ 2}' | cut -c7-'tx_after =' ifconfigeth0 | sed -n" 8" p" awk '{print $ 6}' | cut -c7-'rx_result = $ [(rx_after-rx_before)/256] tx_result = $ [(tx_after-tx_before)/256] echo「$ timeNow_In_Speed:」睡眠2done

Copyright © Windowsの知識 All Rights Reserved