Lucifa Lucifa - 4 months ago 12
Linux Question

How to get the statistics info for one interface through linux command?

we know that some linux command can get tcp statistics info ,such as "netstat -s --tcp" ,"ss -s -t" , but how to get statistics for one specific interface ?

Answer

You can use tcpstat :

tcpstat - report network interface statistics

tcpstat -i <interface>