CLI Control of Wi-Fi in OS X
Tuesday, November 08, 2011, by Sebastian Dwornik

CLI Control of Wi-Fi in OS X



I needed to be able to switch between two Wi-Fi connections in OS X during development of a certain project and it quickly became disruptive to my workflow to always reach for the mouse and use the menu bar.









So I made the following alias commands for use within Terminal on the command line interface.

alias adhoc='networksetup -setairportnetwork en1 <adhoc SSID>'
alias wifi='networksetup -setairportnetwork en1 <my wifi SSID> <WPA2 password>'

Hope this helps others, as it greatly improved my own efficiency.

Re: CLI Control of Wi-Fi in OS X

Cool!

Nice
Thursday, November 10, 2011

not working

dimi
Sunday, March 04, 2012

B_other_topics B_reply

 
Groups

 

 
 
Copyright © 2007 - 2012 Applied PDA Software, Inc. Fresh Lime Studio
All products mentioned on this web site are owned and copyrighted by their respective companies.