Find your WiFi interface
$ ifconfig
In my case it's wlo1 and run
[root@localhost]# iwlist wlan0 scan
Note: Run script as sudo so it will force to refresh, otherwise it will just list the connections
Find your WiFi interface
$ ifconfig
In my case it's wlo1 and run
[root@localhost]# iwlist wlan0 scan
Note: Run script as sudo so it will force to refresh, otherwise it will just list the connections