Lucifa Lucifa - 3 months ago 8
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 ?


You can use tcpstat :

tcpstat - report network interface statistics

tcpstat -i <interface>