Skip to content

Instantly share code, notes, and snippets.

@rahilwazir
Created November 21, 2016 14:49
Show Gist options
  • Save rahilwazir/8f4a277cf20c282c65570ef5110a28b3 to your computer and use it in GitHub Desktop.
Save rahilwazir/8f4a277cf20c282c65570ef5110a28b3 to your computer and use it in GitHub Desktop.
Refresh WiFi network connection through CLI

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment