I have 2 interfaces wlan0 and wlan1.

When I want to see the modes that support my cards I do iw list and I see phy0 and phy2. How do I know what information corresponds to what card?

In other words, how can I know what wlan_x corresponds to which phy_x?

  • graphics card? I'm sure you meant something different...
    – Sebastian
    Nov 5, 2014 at 9:08

2 Answers 2



iw dev

I hope this will help you.

  • 2
    I suggest explain more, what it does and why.
    – peterh
    Oct 1, 2015 at 19:37

Worked on this a bit for another project:

List wifi interfaces:

iw dev | grep -Po '^\sInterface\s\K.*$'

List connected SSID's:

iw dev | grep -Po '^\sInterface\s\K.*$' | xargs -I {} iw dev {} link | grep -Po '^\sSSID:\s\K.*$'    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.