Ubuntu – How to disable wireless from command line

network-managerwireless

How do you disable the wireless Internet from the command line?

I tried sudo ifconfig eth1 down but network-manager seems to ignore this and keeps trying to reactivate it. What's worse is the network-manager widget doesn't let you disable it either once it starting "trying to connect". Whenever I'm near a spotty connection, it just keeps trying and trying to connect, failing each time and showing an annoying error message, "sorry, we couldn't connect".

Best Answer

The command-line equivalent in ubuntu 16.04

nmcli radio wifi off

To re-enable, use

nmcli radio wifi on

To help

nmcli radio help   
nmcli radio wifi help
Related Question