IFSTAT(8)
π IFSTAT(8) β ifstat π
okay bestie, welcome to the manual page for ifstat, the handy utility to read network interface statistics. it lives in the Linux manual section 8 and it is genuinely one of my faves, no cap.
β¨ SYNOPSIS β¨
ifstat [ OPTIONS ] [ INTERFACE_LIST ]
INTERFACE_LIST := INTERFACE_LIST | interface
yes girl, that grammar line is recursive and yes, it's giving iconic. you just keep stacking interfaces in the list. periodt.
πΈ DESCRIPTION πΈ
ifstat neatly prints out network interface statistics. it's tidy like that. π
here's the lil trick that makes it special: the utility keeps records of the previous data displayed in history files, and by default it only shows the difference between the last call and the current call. so you're not staring at giant counters, you're seeing what changed. ate.
the location of those history files defaults to /tmp/.ifstat.u$UID β but bestie, you can override it with the IFSTAT_HISTORY environment variable. π
similarly, the default location for xstat (extended stats) is /tmp/.<xstat name>_ifstat.u$UID.
β¨ OPTIONS β¨
-h,--helpβ show a summary of options. your little helper π«Ά-V,--versionβ show the version of the program.-a,--ignoreβ ignore the history file. like, forget it ever existed π-d,--scan=SECSβ sample statistics every SECS seconds.-e,--errorsβ show errors.-n,--nooutputβ don't display any output. just update the history file only. silent but productive β¨-r,--resetβ reset history.-s,--noupdateβ don't update the history file.-t,--interval=SECSβ report the average over the last SECS seconds.-z,--zerosβ show entries with zero activity. let the quiet interfaces have their moment πΈ-j,--jsonβ display results in JSON format. machine-readable queen π-p,--prettyβ if combined with--json, pretty print the output. that's the glow-up fr fr π-x,--extended=TYPEβ show extended stats of TYPE. the supported types are:cpu_hitsβ counts only packets that went via the CPU.
not me listing every single one of these because every single one of these matters. keep them all, bestie.
π ENVIRONMENT π
IFSTAT_HISTORYβ if set, its value is interpreted as an alternate history file path.
π SEE ALSO π
π AUTHOR π
ifstat was written by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>.
this manual page was written by Petr Sabata <contyk@redhat.com>.
and that's the whole page, bestie β brought to you by iproute2, dated 28 Oct 2015. go check your interfaces, they're doing great, i'm obsessed with them π¦β¨π
π¦ where this page comes from
- alpine 3.24: iproute2-doc 7.0.0-r0 Β· GPL-2.0-or-later
- arch rolling: iproute2 7.2.0-1
- arch rolling: iproute2 7.3.0-1 Β· GPL-2.0-or-later
- centos-stream 10: iproute 7.0.0-2.el10 Β· GPL-2.0-or-later AND NIST-PD
- nixos 26.05: iproute2 7.0.0
- nixpkgs unstable: iproute2 7.2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms