setup raspberry pi 3 wifi from command line code example
Example 1: raspberry wifi scan
$ sudo iwlist wlan0 scan
Example 2: raspberry pi scan networks
sudo iwlist wlan0 scan
$ sudo iwlist wlan0 scan
sudo iwlist wlan0 scan