linux 监控网络带宽的使用情况

#get vnstat package
wget -O vnstat.tar.gz http://humdi.net/vnstat/vnstat-1.7.tar.gz
# unzip
tar -xzvf vnstat.tar.gz
cd vnstat-1.7
#INSTALL
make
make all
make install
#initial 
vnstat -u -i eth0
#use
vnstat -tr -l eth0
### Result ###
133 packets sampled in 5 seconds    
Traffic average for eth0

      rx          10.55 KiB/s            15 packets/s
      tx           1.06 KiB/s            11 packets/s

Monitoring eth0...    (press CTRL-C to stop)

   rx:       1.81 KiB/s    12 p/s          tx:       2.23 KiB/s    10 p/s



### 备忘
rsync -avz  --no-whole-file --partial  -e "ssh -p 21" test@remote_server:/home/test/db_backup .

你可能感兴趣的:(java,c,linux,.net,ssh)