ifquery(8)
π ifquery(8) β the "bestie, what is my network even doing" tool π
okay so real talk: this is ifquery, from the System Manager's Manual (section 8, system admin girlies only π
). If you've ever stared at your interface config like "who are you and what do you want", this is the page for you.
β¨ NAME β¨
ifquery β query interface configuration and state π¦
β¨ SYNOPSIS β¨
ifquery [<options>...] <interfaces...>
ifquery -L|--list
ifquery -s|--state
like, you can either pass it some interfaces with options, or just hit it with -L|--list, or do the state-database thing with -s|--state. three whole moods β¨
β¨ DESCRIPTION β¨
So ifquery pulls info out of the interface configuration file. That's the whole vibe. π
It can also convert from old versions of the interface configuration file into the current format. glow-up service, lowkey π¦
β¨ OPTIONS β¨
-a,--autoβ only match interfaces that are marked asauto. picky on purpose, we love that-h,--helpβ shows you all the supported options forifquery. the friendly one π«Ά-i,--interfaces FILEβ useFILEas the config database. swap the whole source of truth, no biggie-p,--property PROPERTYβ print the values of matching properties for an interface. your fave attribute, served fresh πΈ-r,--runningβ print the interface names that are marked as running in the state database. who's actually up rn π-s,--stateβ query the state database instead of the config database. different database, different energy π-D,--dotβ generate a dependency graph you can feed to GraphVizdot(1). used with--list. it's giving β¨flowchartβ¨-I,--include PATTERNβ includePATTERNwhen matching against the config or state database. yes bestie, come in-L,--listβ list interfaces which exist in the configuration database. roster drop π-P,--pretty-printβ when listing interfaces, print their config in a format compatible withinterfaces(5)files. pretty and functional, iconic-U,--allow-undefinedβ create virtual interfaces for any interfaces not explicitly defined in the configuration file. primarily useful for property queries. manifesting an interface that doesn't exist yet π«-S,--state-file FILEβ useFILEas the state database-T,--timeout TIMEOUTβ wait up toTIMEOUTseconds for executors to complete before raising an error. patience, but make it measurable β³-V,--versionβ print the ifupdown-ng version and exit. identity check πͺͺ-X,--exclude PATTERNβ excludePATTERNwhen matching against the config or state database. respectfully, not you π
β¨ SEE ALSO β¨
the whole friend group, fr fr π«Ά
β¨ AUTHORS β¨
Ariadne Conill <ariadne@dereferenced.org> β thank you for your service, queen π
and that's the page bestie π this one is dated 2025-10-13 and it lives in the System Manager's Manual (that's the source and version/datestamp vibe, iykyk) β go forth and ifquery responsibly β¨ππ¦
π¦ where this page comes from
- ubuntu resolute: ifupdown-ng 0.12.1-8 Β· MIT-like
- ubuntu stonking: ifupdown-ng 0.12.1-8 Β· MIT-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms