ifplugstatus(8)
π ifplugstatus(8) β the link beat detection tool, bestie edition
okay so this is the man page for ifplugstatus, straight out of the System Manager's Manual (section 8, iykyk). sit down, grab a snack, we're gonna vibe-check your ethernet cable together π¦
β¨ NAME β¨
ifplugstatus β a link beat detection tool π
πΈ SYNOPSIS πΈ
ifplugstatus [options] [INTERFACE]
π DESCRIPTION π
okay so ifplugstatus is this utility that detects the link status of a local Linux ethernet device, and it does it pretty much the same way mii-diag, mii-tool and ethtool do it. and here's the slay part β it supports all three of the different APIs those three tools use. not just that, bestie, it also does link checking with the IFF_RUNNING interface flag (which most modern drivers support, and not even just ethernet ones, periodt), plus association status checking with the wireless extension API for WLAN devices π
the APIs get tried in this order, no cap:
- First the newest API:
SIOCETHTOOL(aka the ethtool API) π₯ - Second the next older API:
SIOCGMIIREG(aka the mii-diag API) - Than the WLAN API: wireless extension (aka the iwconfig API) πΆ
- Followed by the cleanest API:
IFF_RUNNING(aka the ifconfig API) β¨
the oldest API (SIOCPRIV aka the mii-tool API) is not tested, because it's obsolete. we don't do that here π
ifplugstatus can be used in shell scripts since it returns the current status as its return value. it's especially useful for detecting the available APIs on the network driver you're using β that's what option -v is for π
π OPTIONS π
you may specify an ethernet device on the command line. otherwise ifplugstatus will check all available network interfaces. main character behaviour, honestly π
-a|--autoβ enable the interface automatically before querying (default:off)-h|--helpβ show help π«Ά-q|--quietβ decrease verbosity by one. so if the verbosity is< 0, no text will be shown at all and only the return value matters; if the verbosity is= 0, you get a terse status; if the verbosity is> 0, you get detailed information about the used API. (by default the verbosity is0) π€«-v|--verboseβ increase verbosity by one. see option-qabove, it's giving the same energy in reverse β¨-V|--versionβ show version π«
π¦ RETURN VALUES π¦
0β Success β¨1β Failure π2β Link beat detected (only available when an interface is specified)3β Unplugged (same here, still only when an interface is specified)
π AUTHOR π
ifplugd was written by Lennart Poettering <mzvscyhtq (at) 0pointer (dot) de>. ifplugd is available at http://0pointer.de/lennart/projects/ifplugd/ π
π SEE ALSO π
mii-diag(8), mii-tool(8), ethtool(8), ifplugd(8)
go read those too bestie, they're the extended universe π«Ά
π¬ COMMENTS π¬
this man page was written using xml2man(1) by Oliver Kurth. iconic of him tbh π
and that's the whole page, bestie!! this was pulled from the Manuals source, living in the User corner of the manual set, filed under ifplugstatus(8) β so if you ever forget where you found it, that's your vibe check done β
stay plugged in ππβ¨
π¦ where this page comes from
- debian bookworm: ifplugd 0.28-19.5
- ubuntu jammy: ifplugd 0.28-19.5
- ubuntu noble: ifplugd 0.28-19.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms