Sometimes I boot into recovery kernel with CLI and networking for troubleshooting my laptop. So is there a way to connect to a wireless router or AP over command line? If it is possible what are the commands for the following:
- To list available networks.
- To connect to a network with: SSID, WPA2 key and DHCP mode.
- A command to connect with: SSID, ad-hoc mode, ip-address, netmask, gateway.