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


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. ## Turn off wifi on your macbook from the Mac OSX terminal command line:
  2.  
  3. networksetup -setairportpower en0 off
  4.  
  5.  
  6. ## Turn on wifi on your macbook from the Mac OSX terminal command line:
  7.  
  8. networksetup -setairportpower en0 on
  9.  
  10.  
  11. ## List available wifi networks from the Mac OSX terminal command line:
  12.  
  13. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan
  14.  
  15. ## Find your network interface name
  16.  
  17. networksetup -listallhardwareports
  18.  
  19. ## Join a wifi network from the Mac OSX terminal command line:
  20.  
  21. 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.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.