zoukankan      html  css  js  c++  java
  • linux网络流量实时监控工具之nload

    Install nload on a CentOS/RHEL/Red Hat/Fedora Linux

    First, turn on EPEL repo on a CentOS or RHEL based system. Type the following yum command to install nload:
    # yum install nload

    Install nload on a Debian or Ubuntu Linux

    Type the following apt-get command:
    $ sudo apt-get install nload

    How do I use nload to display the current network usage?

    The basic syntax is:

    nload
    nload device
    nload [options] device1 device2

    Just type the following command:
    $ nload
    $ nload eth0
    $ nload em0 em2

    Controlling nload app

    Once nload command executed, it begins to monitor the network devices. You can control nload with the following key shortcuts:

    1. You can switch between the devices by pressing the left and right arrow keys or Enter/Tab key.
    2. Press F2 to show the option window
    3. Press F5 to save current settings to the user’s config file.
    4. Press F6 reload settings from the config files.
    5. Press q or hit Ctrl+C to quit nload.

    Setting the refresh interval of the display

    The default value of interval is 100 milliseconds to refresh interval of the display. In this example, change to 500 milliseconds:
    $ nload -t {interval_number_in_millisec}
    $ nload -t 500

    Setting the type of unit used for the display of traffic numbers

    The syntax is:
    $ nload -u h|H|b|B|k|K|m|M|g|G
    $ nload -U h|H|b|B|k|K|m|M|g|G
    $ nload -u h
    $ nload -u G
    $ nload -U G

    Where,

      • The lower case -u option: h means human readable (auto), b Bit/s, k kBit/s, m MBit/s and g GBit/s. The upper case letters mean the corresponding units in Bytes (instead of Bits). The default is k.
      • The upper case -U option is same as lower case -u option, but for an amount of data, e.g. Bit, kByte, GBit etc. (without "/s"). The default is M.
        • REF:
        • https://www.cyberciti.biz/networking/nload-linux-command-to-monitor-network-traffic-bandwidth-usage/
  • 相关阅读:
    Java开发常用Util工具类
    冒泡排序
    EMQ 消息服务器
    将jar文件包打成exe文件
    mina框架搭建tcp服务器:编写自定义协议及编解码器
    SpringBoot中定时任务的设置
    SpringBoot项目+Shiro(权限框架)+Redis(缓存)集成
    计算两个时间之间的天数
    关于extern的使用
    ADC采样间隔问题+TRGO作为ADC的触发源头
  • 原文地址:https://www.cnblogs.com/emanlee/p/10324860.html
Copyright © 2011-2022 走看看