Quickly connect to open wireless CLIPosted: 04.07.12
rfkill list all
to make sure the wireless isn’t soft blocked. If it returns a yes, you either have a physical switch turned to off or a hotkey combination. If the wireless is softblocked, you can turn of softblocks with
sudo rfkill unblock all
sudo ip link set wlan0 up
sudo iwconfig wlan0 essid "network_name"
You should be connected! Run
just to confirm. If you’re connected, you should get messages showing “pinging with x bytes of data…”. Hit
ctrl+c to end the command.