[GLLUG] Wireless Device Names

Jonathan Billings billings at negate.org
Wed Jan 2 16:10:32 EST 2013


On Wed, Jan 02, 2013 at 01:36:12PM -0500, Karl Schuttler wrote:
>
> iwconfig will typically reveal the name of any identified (driver
> available) wireless interfaces, ifconfig -a for non-wireless.

Since 'ifconfig' will probably be going away eventually, you can
future-proof yourself by using 'ip link show' to find all interfaces. 

If you want a more programmatic way, in linux you can just look for
the links in /sys/class/net/.  In each of the directories linked
there, you can look for a 'wireless' directory if it is detected as a
wireless device.

-- 
Jonathan Billings <billings at negate.org>


More information about the linux-user mailing list