Tracking data usage in terminal on Linux

in #linux7 years ago

This trick is particularly useful for those who use metered, limited quota connection like (tethered) mobile internet.

It's easy, the only difficult thing is determining device name — even more confusing (for me at least) their are two types of naming scheme: traditional which is used by kernel, and Predictable Network Interface Names which is used by Systemd.

Here are examples of commonly used connection types and their traditional and predictable names:

Connection typeKernel nameSystemd name
Etherneteth0enp5s0
USB tetheringusb0enp5s0u3
USB Modemppp0wwp0s20u3i2
Wi-Fiwlan0wlp2s0

Without further ado:

ifconfig eth0 | grep bytes
ip -s link show dev eth0
Sort:  

!originalworks

The @OriginalWorks bot has determined this post by @jangkrik to be original material and upvoted it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

To enter this post into the daily RESTEEM contest, upvote this comment! The user with the most upvotes on their @OriginalWorks comment will win!

For more information, Click Here!
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place!

Coin Marketplace

STEEM 0.21
TRX 0.17
JST 0.031
BTC 89292.75
ETH 3408.90
USDT 1.00
SBD 3.00