Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to monitor network usage by nload in Linux     - build Android environment on Ubuntu 12.04 (Server)

- The execution order of Oracle WHERE condition is not from right to left (Database)

- Several SQL Server data migration / Export Import Practice (Database)

- ssh using scp: / directory: Permission denied (Server)

- How to compile and install wxWidgets in Ubuntu / Debian / Linux Mint (Linux)

- Simple security measures to reinforce the Linux kernel (Linux)

- Ubuntu 14.04 How to set up an SSH without password (Linux)

- Linux basic articles of the boot process (Linux)

- DataGuard a hardware issue warnings found (Database)

- Nginx log cutting and MySQL script regular backup script (Server)

- Mount and unloading disks under Linux (Linux)

- To configure Samba to share files with Windows under CentOS (Linux)

- Java JDK has been able to compile without warning (Programming)

- Linux development management utility command (Linux)

- Keepalived + HAProxy high availability load balancing (Server)

- Hadoop configuration ssh automation of automation (Server)

- Talk about jsonp (Programming)

- The first deployment of cross-platform operation Rafy record (Server)

- Simple Calendar C language (Programming)

- Check the Linux server performance with ten or so commands in a minute (Server)

 
         
  How to monitor network usage by nload in Linux
     
  Add Date : 2018-11-21      
         
         
         
  Nload linux is a free software tool, by providing two simple graphics to help linux users and system administrators to monitor network traffic in real-time as well as broadband usage: one is the incoming traffic, one for outgoing traffic.

I really like to use nload to display the current download speed, total inflows and average download speed and other information on the screen. FIG nload reporting tools are very easy to understand, the most important is this information really helpful.
ac
Speaking on the use of manual, by default it will monitor all network devices. But you can easily specify the device you want to monitor, but also by the arrow keys to switch between different network devices. In addition, there are many options available, such as '-t' option to refresh the display to set the millisecond interval (interval default value is 500 milliseconds), '- m' option is used to simultaneously display multiple devices (in the use of this option when not displayed flow diagram), '- u' option is used to set the display traffic numbers of units, in addition to many other options will be explored and exercises in this tutorial.

How nload installed on your linux machine

Ubuntu and Fedora users can be easily installed from the default depot.

Use the following command to install on Ubuntu.

sudo apt-get install nload
Use the following command to install on Fedora.

sudo yum install nload
CentOS users how to do it? Only need to enter the following command on your machine can be installed successfully.

sudo yum install nload
The following command will help you install nload in OpenBSD systems.

sudo pkg_add -i nload
On linux machine to another very effective way is to install software to compile the source code, download and install the latest version means being able to get better performance, cool features and less bug.

How to install from source nload

Before installing nload from the source code, you need to download the source code. I usually use wget to download the tool - the tool on many linux machine available by default. The free non-interactive tool helps users to download files from the network, and supports the following protocols:

HTTP
HTTPS
FTP
By the following command into the / tmp directory.

cd / tmp
Then enter the following command in your terminal, you can download the latest version of nload to your linux machine.

wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
If you prefer not to use wget tool, you can click a mouse by simply and easily download the source code from the official website.

Because the software is very light, almost in an instant download process will be completed. The next step is through the tar tool to download the source code package decompress.

tar archiving tools can be used from a tape or hard disk or stored in the document-extracting file, the tool has many options available, but we only need the following several options to perform our operations.

-x Extract the files from the archive
-v cumbersome to use mode - to display details
-f to specify the archive
For example (LCTT Annotation: tar command arguments before the "-" may be omitted):

tar xvf example.tar
Now you learn how to use the tar tool, I'm pretty sure you know how to unpack the .tar file from the command line.

tar xvf nload-0.7.4.tar.gz
After using cd command to enter nload * directory:

cd nload *
On my system it looks like this:

oltjano @ baby: /tmp/nload-0.7.4$
Then run the following commands to configure the package for your system:

./configure
At this time there will be "a big wave of zombies" will be displayed on your screen, the following describes a screenshot it looks.

After the above command completes, use the following command to compile nload.

make

Well, finally ...., the following command can be nload installed on your machine.

sudo make install

After installing nload is to let you learn how to use it in time.

How nload

I like to explore, so in your terminal, enter the following command.

nload
You see?

I got the following results.

Inflow

The current download speed

Average download speed

The minimum download speed

Maximum download speed

The total inflow of bytes displayed


Outflow

The same applies to similar outflow

Some useful options nload

Use -u option to set the display flow units.

The following command will help you use MBit / s the display unit

nload -u m
The screenshot below shows the results of the command.

Try the following command and then see what happens.

nload -u g

At the same time there is a -U option. According to the manual description, this option is substantially similar to the -u option, except that in the aggregate data. I tested this order, to be honest, when you need to check the total amount of inflow and outflow is very useful.

nload -U G

You can see from the screenshot above, nload -U G Gbyte use to display the amount of data.

I like to use another useful option is the -t. The option is to refresh the display event interval, in milliseconds, default value is 500 milliseconds.

I'll do some small experiments with the following command.

nload -t 130
Then the above command to do anything at all? It will display refresh interval is set to 130 ms. Do not normally recommended time interval set this value less than 100 milliseconds, because nload calculation error when generating reports.

Another option is -a, when calculating the average number of seconds you want to set a time window of use, the default value is 300 seconds.

Then when you want to monitor specific network devices, how do? Very easily, so simply specify the device to the list or lists the device you want to monitor as follows.

nload wlan0

The following syntax can help you to monitor multiple devices specified.

nload [options] device1 device2 devicen
For example, use the following command to monitor the eth0 and eth1.

nload wlan0 eth0
Without the option to run nload, then it will automatically monitor all detected devices, you can left and right arrow keys to display information in which any one of the devices.
     
         
         
         
  More:      
 
- How to configure Ceph stored on CentOS 7.0 (Server)
- JavaScript basic types and type conversion (Programming)
- Ceph tuning --Journal and tcmalloc (Server)
- Redis-- persistence articles (Database)
- Use a soft Raid play multiple SSD hard drive performance and enhance data security (Linux)
- Python Django direct implementation of sql statement (Programming)
- grep regular expression (Linux)
- Use LKM change the default linux security level (Linux)
- How to configure security services under Linux (Linux)
- Seven kinds of NIC binding mode Detail (Linux)
- Oracle PL / SQL selective basis (IF CASE), (LOOP WHILE FOR) (Database)
- Java memory area Explanation (Programming)
- GRUB and Linux system repair (Linux)
- Vim copy and paste register (Linux)
- How to build a container cluster (Server)
- CentOS 7 How to connect to a wireless network (Linux)
- The correct method to modify the maximum number of concurrent connections Tomcat 7 (Server)
- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)
- Spring AOP custom annotation way to achieve log management (Programming)
- Vim Getting Started Tutorial (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.