To scan all available wifi networks, this command is often used :
sudo iwlist wlp2s0 scan
The problem is that you need root privileges. But if you go to Settings/Wi-Fi, you can see the list and properties of Wifi networks even without being sudo.
How is it done ? What is the command used to achieve that ?