Are there any tools to check data usage of USB datacard on Linux? The way can be done on Windows, is it possible on Linux also?
Are there any tools to check data usage of USB datacard on Linux? The way can be done on Windows, is it possible on Linux also?
Use vnstat
Then first check which Interfaces are available through
Available interfaces: lo eth0
, theeth0
for Wired connection, yours will be different (wlan0
i guess)Then run
It will be something like this
You can use
vnstat
accordingly ,Similarly
vnstat -d
for daily basis record ,vnstat -h
for hourly basis and you can refer other usage through the Vnstat Manpage .Another Web Browser based utility is NTOP
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 eth0
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 andeth0
is the ethernet used for internet connection (wlan0
may be used for WiFi andppp0
for a USB datacard).