IFDATA(1)
π IFDATA(1) π
okay bestie, so this is ifdata, and it lives in the moreutils manual, section 1. yes, that moreutils. the little grab-bag of tools that goes absolutely feral. and ngl, this one is lowkey the moment.
β¨ NAME β¨
ifdata β get network interface info without parsing ifconfig output π¦
πΈ SYNOPSIS πΈ
ifdata [options] {iface}
π DESCRIPTION π
so here's the vibe: ifdata can check if a network interface even exists, or it can spill the tea about that interface β like its IP address, etc.
and here's the part that ate π
β unlike ifconfig or ip, ifdata gives you simple to parse output that is literally designed to be easily used by a shell script. it's giving "written by someone who has suffered through awk-ing ifconfig output at 3am." main character energy fr fr.
π OPTIONS π
-hβ print out a help summary. cute, quick, we love a summary.-eβ test to see if the interface exists. exits nonzero if it does not. a little vibe check for your interface, basically. π-pβ prints out the whole configuration of the interface. the full lore drop.-peβ prints"yes"or"no"depending on whether the interface exists or not.-paβ prints the IPv4 address of the interface.-pnβ prints the netmask of the interface.-pNβ prints the network address of the interface. (capital N, bestie, don't mix it up with-pnπ)-pbβ prints the broadcast address of the interface.-pmβ prints the MTU of the interface.
π heads up: the following options are Linux only. no cap.
-phβ prints the hardware address of the interface. exits with a failure exit code if there is not a hardware address for the given network interface. π-pfβ prints the flags of the interface.-siβ prints out all the input statistics of the interface. the whole input saga.-sipβ prints the number of input packets.-sibβ prints the number of input bytes.-sieβ prints the number of input errors.-sidβ prints the number of dropped input packets.-sifβ prints the number of input fifo overruns.-sicβ prints the number of compressed input packets.-simβ prints the number of input multicast packets.-soβ prints out all the output statistics of the interface. and now the output saga β¨-sopβ prints the number of output packets.-sobβ prints the number of output bytes.-soeβ prints the number of output errors.-sodβ prints the number of dropped output packets.-sofβ prints the number of output fifo overruns.-soxβ prints the number of output collisions.-socβ prints the number of output carrier losses.-somβ prints the number of output multicast packets.-bipsβ prints the number of bytes of incoming traffic measured in one second. bytes-in-per-second, iykyk π-bopsβ prints the number of bytes of outgoing traffic measured in one second.
π AUTHOR π
Benjamin BAYART
and that's the whole page, bestie π«Ά written by Benjamin BAYART, shipped as part of moreutils, dated 2006-03-07 β and that's your IFDATA(1) footer, mwah π go parse something. π
π¦ where this page comes from
- debian bookworm: moreutils 0.67-1 Β· GPL-2.0-or-later
- debian trixie: moreutils 0.69-1 Β· GPL-2.0-or-later
- epel 10: moreutils 0.68-3.el10_0 Β· GPL-2.0-only
- epel 9: moreutils 0.68-1.el9 Β· GPLv2
- fedora 43: moreutils 0.68-5.fc43 Β· GPL-2.0-only
- fedora 44: moreutils 0.68-6.fc44 Β· GPL-2.0-only
- nixos 26.05: moreutils 0.70
- nixpkgs unstable: moreutils 0.70
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- opensuse-leap 16.0: moreutils 0.68-bp160.1.13 Β· GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-or-later OR MIT) AND BSD-2-Clause AND SUSE-Public-Domain
- ubuntu jammy: moreutils 0.66-1 Β· GPL-2.0-or-later
- ubuntu noble: moreutils 0.69-1 Β· GPL-2.0-or-later
- ubuntu questing: moreutils 0.69-1
- ubuntu resolute: moreutils 0.69-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: moreutils 0.70-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms