Linked to this

Is there any way to literally kill wifi (wifi process/wifi related processes?) and then launch/relaunch it, all with terminal?

maybe sudo killall WiFiAgent?

macOS Sierra (10.12)

  • What makes you believe that the WiFi process is somehow at fault? – Allan Feb 27 '19 at 1:44

As found here:

Wifi can be turned on and off using

networksetup -setairportpower en0 off

and back on using

networksetup -setairportpower en0 on

When I use this, it says something along the lines of en0 is not wifi, turning on/off en1 instead, presumably because en0 is my ethernet connection.

EDIT: Also, this should be a comment, but I cannot yet comment, but sudo killall WiFiAgent does not appear to do anything on my computer.

  • This turns off Wi-Fi. It doesn't kill the process. – Allan Feb 27 '19 at 1:39
  • @Allan I assumed it would kill the process, but if it doesn't, then I'm not sure how to do that – Sid Feb 27 '19 at 20:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .