Connect Raspberry Pi to Wifi

It is fairly self explanatory to do it through the UI if there is one but to do it through the terminal all you have to do is :