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

3 Answers 3

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.

2

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, 2015 at 6:41
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/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .