How to connect to wifi with beagle bone blue running ubuntu Bionic ?

Hello guys , I am relatively new to beagle bone platform and Linux. This board shipped with debian in which I was able to connect to wifi. However when I boot from an SD card using Ubuntu I am not able to connect to wifi. ifconfig doesn’t work always returns invalid argument . if I use connmanctl it says no command found. I am really stuck in this can anyone help?