View network interface stats on FreeBSD
The useful stats (e.g. sent/received bytes) provided by ifconfig
on Linux are missing from the output of the same command on FreeBSD systems. Fortunately, these are provided by netstat
:
netstat -ibh
-i
tells netstat
to enter interface stats mode, -b
means “show sent/received bytes” and -h
is for human-readable output.