Change Network location from terminal I have a two locations set up on my macBook. One for normal use and another for when I use a proxy, which I start from the command line.  It would be very useful for me to be able to switch network location from the command line at the same time.  Is this possible?
Yep, pretty easy too.  You may need to 'sudo' the command depending on your system's configuration.

networksetup -switchtolocation "location name"


There are some other options, too:

networksetup -getcurrentlocation
networksetup -listlocations
networksetup -createlocation &lt;location name&gt; [populate]
networksetup -deletelocation &lt;location name&gt;
networksetup -switchtolocation &lt;location name&gt;