在Linux上是否有htop/top,我可以根据网络使用情况对进程进行排序?


当前回答

Iptraf是我的最爱。它有一个很好的ncurses界面,以及过滤选项等。

其他回答

检查bmon。它是cli,简单,有图表。

这不完全是问题所在——它不按进程划分,只按网络接口划分。

Iptraf是我的最爱。它有一个很好的ncurses界面,以及过滤选项等。

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

Jnettop是另一个候选。

编辑:它只显示流,不显示所有者进程。