Connect to wifi from terminal raspberry pi

Connect to WiFi from terminal raspberry pi

  • What you will learn here about raspberry pi

How to Connect WiFi from terminal raspberry pi

Connect to WiFi from terminal raspberry pi

Please follow the following steps to know how to connect WiFi from raspberry pi terminal

1)First please open your raspberry pi terminal

2)Now please execute follow command which will write WiFi SSID and password to wpa_supplicant.conf file which is shown below

wpa_passphrase SSID Password | sudo tee /etc/wpa_supplicant.conf

Example shown below is for my WiFi

wpa_passphrase "joker" "[email protected]" | sudo tee /etc/wpa_supplicant.conf

3)Now following command will help you to connect with your WiFi. Please make sure your WiFi is ON

sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0

You may also like...