Ubuntu 20.04: Connect to wifi from command line - LinuxConfig.org

In this tutorial you will learn how to connect to WiFi from command line using Netplan. This could be useful if you are running a headless Ubuntu 20.04 system such as server or Ubuntu 20.04 on Raspberry Pi.
This is a companion discussion topic for the original entry at https://linuxconfig.org/ubuntu-20-04-connect-to-wifi-from-command-line