国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > CentOS > 正文

CentOS下nethogs命令詳解

2020-07-08 12:44:52
字體:
來源:轉載
供稿:網友

Nethogs 是一個終端下的網絡流量監控工具,它的特別之處在于可以顯示每個進程的帶寬占用情況,這樣可以更直觀獲取網絡使用情況。它支持 IPv4 和 IPv6 協議、支持本地網卡及 PPP 鏈接。

安裝過程

##下載##

[root@ipython ~]# wget http://softlayer-dal.dl.sourceforge.net/project/nethogs/nethogs/0.8/nethogs-0.8.0.tar.gz

##依賴安裝##

[root@ipython ~]# yum install libpcap-devel ncurses-devel

##build iftop##

[root@ipython ~]# tar zxf nethogs-0.8.0.tar.gz

[root@ipython ~]# cd nethogs

[root@ipython nethogs]# make && make install

直接運行

[root@ipython ~]# nethogs --help

nethogs: invalid option -- '-'

usage: nethogs [-V] [-b] [-d seconds] [-t] [-p] [device [device [device ...]]]

-V : 版本輸出

-d : 延遲刷新,默認1秒

-t : 跟蹤模式

-b : bughunt mode - implies tracemode.

-p : 指定接口

When nethogs is running, press:

q: quit

m: switch between total and kb/s mode

awk 處理nethogs日志一例:

[root@ipython ~]# nethogs > awk_nethogs.txt

Waiting for first packet to arrive (see sourceforge.net bug 1019381)

[root@ipython ~]# cat -A awk_nethogs.txt |awk -F '[ ^]+' '//?/&&!/unknown/{sub(/^.*H/,"",$4);sub(/^.*G/,"",$5);print $3"/t"$4"/t"$5}'

[[1;23r [(B [[m

[[0;7m PID USER

[[0;7m PID USER

[[0;7m PID USER

107.170.243.66:80-27.115.124.32:38707 0.119 0.091

107.170.243.66:80-27.115.124.32:38707 0.119 0.091

107.170.243.66:80-27.115.124.32:38707 0.119 0.091

107.170.243.66:80-27.115.124.32:38707 0.119 0.091

107.170.243.66:80-27.115.124.32:38707 0.119 0.091

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 岑溪市| 方城县| 伽师县| 类乌齐县| 明光市| 连平县| 田东县| 焉耆| 吉木乃县| 习水县| 临朐县| 宽城| 视频| 中卫市| 特克斯县| 山丹县| 景谷| 阆中市| 桃江县| 云安县| 宝丰县| 方正县| 类乌齐县| 石家庄市| 井研县| 视频| 紫阳县| 白山市| 泗水县| 南丹县| 新余市| 河津市| 金塔县| 新邵县| 桐乡市| 板桥市| 阳新县| 宜阳县| 上栗县| 惠州市| 封丘县|