Return to Snippet

Revision: 70851
at August 4, 2016 03:46 by wanderlusts


Initial Code
## Turn off wifi on your macbook from the Mac OSX terminal command line:

networksetup -setairportpower en0 off


## Turn on wifi on your macbook from the Mac OSX terminal command line:

networksetup -setairportpower en0 on


## List available wifi networks from the Mac OSX terminal command line:

/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan

## Find your network interface name

networksetup -listallhardwareports

## Join a wifi network from the Mac OSX terminal command line:

networksetup -setairportnetwork en0 WIFI_SSID_I_WANT_TO_JOIN WIFI_PASSWORD (the whole all cap thing is actually just the name separated by the password - make sure to escape (\) all spaces in the wifi network name.

Initial URL


Initial Description


Initial Title
Turn off wifi on your macbook from the Mac OSX terminal command line:

Initial Tags
terminal

Initial Language
Other