Linux "ifstat" Command Line Options and Examples
handy utility to read network interface statistics

ifstat neatly prints out network interface statistics. The utility keeps records of the previous data displayed in history files and by default only shows difference between the last and the current call. Location of the history files defaults to /tmp/.


Usage:

ifstat [ OPTIONS ] [ INTERFACE_LIST ]


    INTERFACE_LIST := INTERFACE_LIST | interface




Command Line Options:

-h
Show summary of options.
ifstat -h ...
-V
Show version of program.
ifstat -V ...
-a
Ignore the history file.
ifstat -a ...
-d
Sample statistics every SECS second.
ifstat -d ...
-n
Don't display any output. Update the history file only.
ifstat -n ...
-s
Don't update the history file.
ifstat -s ...
-t
Report average over the last SECS seconds.
ifstat -t ...
-z
Show entries with zero activity.
ifstat -z ...
-x
Show extended stats of TYPE. Supported types are:cpu_hits - Counts only packets that went via the CPU.ENVIRONMENTIFSTAT_HISTORYIf set, it's value is interpreted as alternate history file path.
ifstat -x ...