IWGETID(8)
β¨ IWGETID π (that's section 8 of the Linux Programmer's Manual, bestie)
okay so real talk, this page is iwgetid(8) from the wireless-tools girlies and it's literally the most useful little gremlin in your toolbox πΈ
π NAME π
iwgetid β reports the ESSID, NWID or AP/Cell Address of a wireless network, no cap π
π¦ SYNOPSIS π¦
iwgetid [interface] [--raw] [--scheme] [--ap] [--freq]
[--mode] [--protocol] [--channel]
π DESCRIPTION π
so like, iwgetid is the girl you call when you need to know the NWID, ESSID or AP/Cell Address of the wireless network you're currently riding with β¨ The info it hands you is literally the exact same tea that iwconfig spills, except iwgetid is way easier to slot into your scripts, which is the whole point bestie π«Ά
by default, iwgetid prints the ESSID of the device, and if the device is out here with no ESSID at all, it'll print its NWID instead. periodt π
the default formatting output is pretty-print. cute, right? π
π OPTIONS π
--rawβ this one disables the pretty-printing of the info, so you get the raw, unfiltered truth π this option is orthogonal to the other options (except--scheme), so with the right lil combination of options you can print the raw ESSID, AP Address or Mode π₯ this format is ideal when you're storing the result ofiwgetidas a variable in Shell or Perl scripts, or when you wanna pass the result as an argument on the command line ofiwconfig. it's giving utility π§--schemeβ similar to the previous one, bestie: it disables the pretty-printing of the info AND removes all characters that aren't alphanumerics (so like, space, punctuation and control characters β bye bye π). the resulting output is a valid Pcmcia scheme identifier (which may be used as an argument of the commandcardctl scheme). this format is also ideal when you're using the result ofiwgetidas a selector in Shell or Perl scripts, or as a file name πΈ so versatile honestly--apβ displays the MAC address of the Wireless Access Point or the Cell π‘--freqβ displays the current frequency or channel used by the interface π--channelβ displays the current channel used by the interface. the channel is determined using the current frequency and the frequency list provided by the interface π (yes she does the math herself, iconic)--modeβ displays the current mode of the interface π«--protocolβ displays the protocol name of the interface. this lets you identify all the cards that are compatible with each other and accept the same type of configuration, so you can matchmake them π₯° this can also be used to check Wireless Extension support on the interface, because this is the only attribute that all drivers supporting Wireless Extension are mandated to support. it's the vibe check of attributes, fr fr π
not me reminding you that--rawis orthogonal to everything except--schemeπ keep that in mind before you go mixing flags like it's a smoothie
π SEE ALSO π
iwconfig(8), ifconfig(8), iwspy(8), iwpriv(8).
go read those too, they're all part of the same friend group π
and that's the whole page bestie!! this one came from wireless-tools, dated 02 December 2003 β oldie but a goodie, still slaying after all these years ππ mwah, go check your ESSID π¦β¨
π¦ where this page comes from
- alpine 3.22: wireless-tools-doc 30_pre9-r5 Β· GPL-2.0-only
- alpine 3.23: wireless-tools-doc 30_pre9-r5 Β· GPL-2.0-only
- alpine 3.24: wireless-tools-doc 30_pre9-r5 Β· GPL-2.0-only
- arch rolling: wireless_tools 30.pre9-5 Β· GPL
- debian bookworm: wireless-tools 30~pre9-14
- debian trixie: wireless-tools 30~pre9-18+b1
- nixos 26.05: wireless-tools 30.pre9
- nixpkgs unstable: wireless-tools 30.pre9
- opensuse-leap 16.0: wireless-tools 30.pre9-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: wireless-tools 30.pre9-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: wireless-tools 30.pre9-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: wireless-tools 30.pre9-160000.2.2 Β· GPL-2.0-only
- ubuntu jammy: wireless-tools 30~pre9-13.1ubuntu4
- ubuntu noble: wireless-tools 30~pre9-16.1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms