How to monitor Internet bandwidth usage in elementary OS

If you are using internet connection with limited bandwidth, you might want to check how much is used on your elementary OS PC. One of the best methods I prefer is by using a combination of vnstati and vnstat tools. Both are available in Ubuntu Repositories for free download.

Install VNSTATI

Launch Terminal and enter the following command to install vnstati.

sudo apt-get install vnstati

You will have to enter root password and key in ‘Y’ to install it successfully.

Find out Network Connection Interfaces

Next step is to know the type of network connection adapters on your PC. To find them use the ifconfig command line as follows:

ifconfig | cut -c 1-8 | sort | uniq -u

It will list all the available connections. In my test PC the results are ‘eth0’ and ‘l0’. If you have wireless connection, it would additionally list wlan0 as well.

Export Bandwidth Usage Report

Now you are all set to fetch out the internet usage report. Remember that the report accumulation starts only after the vnstati is installed on your computer. Enter the following command line in the terminal. Don’t forget to replace the interface with your PC adapter type.

vnstati -vs -i eth0 -o ~/bandwidth_statistics.png 

vnstati
vnstati

A detailed report will get saved in the Home directory with the file name ‘bandwidth_statistics.png’. Open ‘Files’ and see the ‘Home’ directory.

Internet Bandwidth Usage Statistics
Internet Bandwidth Usage Statistics

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. Hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more, and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,118FansLike
210FollowersFollow
6SubscribersSubscribe

LATEST ARTICLES

How to create a bootable CentOS Live USB drive on Windows

create centOS Live USB drive
CentOS ISO downloads are available in two different variations - Minimal ISO and DVD ISO. So what are these? In this guide, you will know how to create a CentOS Live USB drive that can also be used to install CentOS.
gamemode enable linux
GameMode is a combination of various libraries and daemons that allows all the users to improve the gaming performance on the Linux system. Developed by games publisher Feral Interactive, it improves gaming performance by requesting a group of options that will be applied temporarily to the Linux system.
foss and linux
The rise of the Linux operating system, in all its various distributions, over the past few decades has catapulted the popularity of Free or Open Source Software (FOSS). Let's guide you in understanding what is FOSS, how it differs from freeware and is Linux a FOSS.
best linux distros for windows users
When Microsoft initially released Windows 7 in October 2009, the software giant committed to providing ten years of support for its popular operating system.  The much-maligned Microsoft was true to their word, support for Windows 7 ended just yesterday a little over ten years after its release.