Since ifconfig
is apparently being deprecated in major Linux distributions, I thought I'd learn something about the ip
tool that's supposed to be used instead of ifconfig
.
And here I ran into a problem: when run on its own, ifconfig
shows the number of bytes received/transmitted on each interface besides other info. I couldn't find a way to get this from ip
. Is there no such function in this tool? What other built-in tools could I use for getting those stats?