This is a question, but also kind of thinking out loud. I hope I'm not the only one whose curiosity is piqued by this and wants the answer:
I was using VNC to access my Raspbian Pi (static IP) and accidentally clicked the Wifi icon up top, then clicked Turn off Wifi (or whatever it's actually named). Obviously my VNC lost connection.
So I plugged in a keyboard and tried turning it back on through the terminal locally:
sudo ifconfig wlan0 up (didn't work)
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf (adjustments found online didn't work)
sudo nano /etc/networks/interfaces (adjustments found online didn't work here either)
sudo raspi-config (re-entering wifi settings here didn't work)
Then I figured (took my brain long enough) that since I turned it off with the mouse, maybe try turning it back on with the mouse. Worked (after a reboot).
What's the difference? And how could I have used terminal to properly turn it back on? I'm under the impression that anything can be accomplished via the terminal. Is that true?
Thanks in advance
P.S. Side note, if anyone has experience running a wordpress server on a pi or any machine really, I could use some real help on my other question here. All insights are very much appreciated!