Linux 中查看网口流量的利器 -- sar 有这么一个小工具,通过它能够查看各个网口的IP报文流量统计. 利用sar命令,加上-n DEV参数,即可统计出所有网卡上的流量,在显示的第五和第六列,显示的是接收到的数据流量和发送的数据流量,单位是kB/s,即每秒多少千字节.后面的1 2是指每1秒报告一次,共报告2次. # sar -n DEV 1 2Linux 2.6.32.59-0.7-default (vmCIE) 04/02/14 _x86_64_ 21:12:47
介绍Linux进程查看及管理的工具:pstree, ps, pidof, pgrep, top, htop, glance, pmap, vmstat, dstat, kill, pkill, job, bg, fg, nohup 一. pstree命令: pstree - display a tree of processes 二. ps: process state, report a snapshot of the current p
sar -n DEV #查看当天从零点到当前时间的网卡流量信息 sar -n DEV 1 10 #每秒显示一次,共显示10次 sar -n DEV -f /var/log/sa/saxx #查看xx日的网卡流量历史 sar -q #查看历史负载 sar -b #查看磁盘读写 1.查看网卡历史流量 重点掌握 #sar -n DEV IFACE 表示设备名称 rxpck/s 每秒接收的包的数量 txpck/s 每秒发出的包的数量 rxKB/s 每秒接收的数据量,单位KByte 1KB=1000b