I was trying to fix my wifi on Kali Linux the other day and was following some tutorial. That didn't work, so I read somewhere that if I run this command

iw dev wlan0 del

After that command I can't seem to find my wlan device. When I type iwconfig it shows this:

lo        no wireless extensions.

eth0      no wireless extensions.

Anyone know what should I do now?

2 Answers 2


To undo deletion of wlan0, you can recreate it like so:

iw phy phy0 interface add wlan0 type managed

This is much faster than rebooting and more reliable than restarting network-manager.


Easiest way is to just reboot. The type of configuration change you've made does not persist across reboots.

  • 1
    do sudo service network-manager restart. It will reinitalise all the network interfaces...
    – user93868
    Aug 22, 2015 at 12:37
  • that might work, if you have network-manager installed, and if network-manager knows how to recreate the necessary device. That's not a given. Aug 23, 2015 at 21:42

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.