位置: 编程技术 - 正文

CentOS下nethogs命令详解(centos nis)

编辑:rootadmin

推荐整理分享CentOS下nethogs命令详解(centos nis),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:centos下载命令,centos netinstall,centos安装net-tools,centos下载命令,centos netmanager,centos netinstall,centos nethogs,centos下载命令,内容如对您有帮助,希望把文章链接给更多的朋友!

Nethogs 是一个终端下的网络流量监控工具,它的特别之处在于可以显示每个进程的带宽占用情况,这样可以更直观获取网络使用情况。它支持 IPv4 和 IPv6 协议、支持本地网卡及 PPP 链接。

安装过程

##下载##

[root@ipython ~]# wget ~]# 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.

CentOS下nethogs命令详解(centos nis)

-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 )

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

[[1;r [(B [[m

[[0;7m PID USER

[[0;7m PID USER

[[0;7m PID USER

...:-...: 0. 0.

...:-...: 0. 0.

...:-...: 0. 0.

...:-...: 0. 0.

...:-...: 0. 0.

CentOS设置文件字符编码的方法 字符编码(英语:Characterencoding)、字集码是把字符集中的字符编码为指定集合中某一对象(例如:比特模式、自然数序列、8位组或者电脉冲),以便

CentOS下如何删除大目录? 由于目录下全是琐碎的小文件而且目录结构具深,使用rm-rf/backup,速度是每秒钟-M,我去,T的数据得删多长时间啊!网上找资料,可以通过rsync来实现

CentOS永久禁止PackageKit后台运行解析 使用centos时,使用yum安装软件,老是会遇到这种提示:1.Existinglock/var/run/yum.pid:anothercopyisrunningaspid.2.Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...3.The

本文链接地址:https://www.jiuchutong.com/biancheng/359093.html 转载请保留说明!

上一篇:CentOS虚拟机下的相关操作详解(虚拟机里安装centos7)

下一篇:CentOS设置文件字符编码的方法(centos7修改文件内容)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络