linux下使用nload檢視網路卡實時流量(zt)

tonykorn97發表於2009-02-26

nload是一個網路流量統計工具,當前版本為0.7.2。
下載地址:[@more@]

使用yum 安裝也可以。

yum install nload

原始碼安裝
2. Installing / Compiling nload
----------------------------

Compiling is done by running

./configure
make

in the directory where this README is.
To install nload, you have to be root:

su
make install

You can find more detailed information in the file INSTALL in this directory.

3. Using nload
-----------

To learn about the command line switches and the usage of nload in general,
simply run:

nload --help

Alternatively, there is a nload man page available by typing:

man nload

4. Uninstalling nload
------------------

If you want to uninstall nload (I hope you never want to ;-), run:

make uninstall

in the build directory.

使用原始碼方式安裝到/usr/local/nload,將/usr/local/nload/bin目錄加入/etc/profile。

重新登陸ssh後,直接輸入nload即可檢視網路卡的當前流量情況。
nload eth0 — 檢視名叫eth0網路卡的流量

可檢視當前、平均、最小、最大、總共等的流量情況,單位為bit,詳細的使用說明請參見:

比較好的例子:

nload -o 20480 -i 204800 -u M

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-1017860/,如需轉載,請註明出處,否則將追究法律責任。

相關文章