Today the most Linux distributions for desktop / laptop usage uses NetworkManager to setup network interfaces.
To enable or disable WiFi here on the console you can use the NetworkManager cli tool named nmcli
.
To enable WiFi just run:
nmcli radio wifi on
And for disabling you should run:
nmcli radio wifi off