gpt4 book ai didi

linux - Linux 上的网络使用率 top/htop

转载 作者:IT老高 更新时间:2023-10-28 12:19:09 25 4
gpt4 key购买 nike

Linux 上是否有一个 htop/top,我可以在其中按网络使用情况对进程进行排序?

最佳答案

NetHogs可能是您正在寻找的:

a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process.

NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth.

Since NetHogs heavily relies on /proc, most features are only available on Linux. NetHogs can be built on Mac OS X and FreeBSD, but it will only show connections, not processes...

关于linux - Linux 上的网络使用率 top/htop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/368002/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com