天天看點

nethogs按程序檢視流量占用

nethogs: 按程序檢視流量占用

#nethogs -h
usage: nethogs [-V] [-b] [-d seconds] [-t] [-p] [device [device [device ...]]]
                -V : prints version.
                -d : delay for update refresh rate in seconds. default is 
                -t : tracemode.
                -b : bughunt mode - implies tracemode.
                -p : sniff in promiscious mode (not recommended).
                device : device(s) to monitor. default is eth0

When nethogs is running, press:
 q: quit
 m: switch between total and kb/s mode
#nethogs eht1
NetHogs version 

  PID USER      PROGRAM                  DEV        SENT      RECEIVED       
 root     /xx/xx-agent             eth1               KB/sec
  root     /xx/xx                   eth1               KB/sec