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".
sudo nmcli radio wifi off
. – Stéphane Oct 04 '19 at 07:17sudo
. It should fail with an error message. – MarcH May 13 '20 at 22:50sudo
because I was connected to the machine through a remote connection (thesudo
was needed maybe to prevent a normal user from stopping the wifi). When I logged in locally, it worked fine without usingsudo
– SebMa Jun 06 '20 at 13:41cfg80211 710770 3 iwlwifi,mac80211,iwldvm
– J Roysdon Aug 22 '20 at 18:12