Run the Nethogs command on the Ubuntu terminal to view the network bandwidth.

Source: Internet
Author: User

Run the Nethogs command on the Ubuntu terminal to view the network bandwidth.

Nethogs is a network traffic monitoring tool on a terminal. It displays the bandwidth usage of each process, so that the network usage can be obtained more intuitively. It supports IPv4 and IPv6 protocols, local NICs, and PPP connections.

Top: You can view the cpu and memory used by processes, and monitor the processes that occupy the maximum cpu and memory at any time.
Nethogs can be said to be the top network bandwidth. It can view the bandwidth used by the process. It is the same as top and can be refreshed at any time.

Install: This program is available in Ubuntu official sources.

Sudo apt-get install nethogs

Usage:

Sudo nethogs eth0

This program requires the root permission. By default, the eth0 Nic is monitored. Therefore, you can directly enter sudo nethogs. If there are multiple NICs, you must specify them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.