Connect to WiFi Using Terminal in Arch Linux and Other Distros

This guide is ideal for those scenarios where you are stuck with a terminal without any GUI and no other wired internet connectivity is available. These steps help you to manually detect the wireless card, device and connect to the WiFi hotspot with password authentication via terminal.