1

I use a huawei dongle to access the Internet and since mobile partner doesn't support Ubuntu is there a way to check the data usage? any app maybe?

2
1

You can check it in every System Monitor (or Task Manager) like in this one from Gnome:

Gnome System Monitor screenshot

1
  • Thats a good thing... hidden behind and I was searching for here and there... Thank you buddy... – Anuj TBE Mar 2 '15 at 6:41
6

vnstat is probably the best way to do this. It can be installed using the following command in terminal:

sudo apt-get install vnstat

If you don't want to keep checking the data usage status every time then use:

watch -n 5 --differences vnstat -d ppp0

It would display the status every 5 seconds in the open terminal with the differences that occur in the values. -d is used to display the status of each day and eth0 is the Ethernet used for internet connection (wlan0 may be used for WiFi).

Sample output:

 ppp0  /  daily
         day         rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
      02/07/15     99.11 MiB |   11.10 MiB |  110.21 MiB |   10.45 kbit/s
      02/08/15     25.09 MiB |    3.75 MiB |   28.84 MiB |    5.37 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        49 MiB |       5 MiB |      54 MiB |

NOTE: Type ifconfig in Terminal and see the output. The ppp thing followed by a number(could be ppp0) is your dongle. Use it with vnstat as explained above.

0

You can choose between a GTK tool, NTM:

http://netramon.sourceforge.net/eng/index.html

And a more advanced command line tool, vnStat:

http://humdi.net/vnstat/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.