Set Network Location in Mac OS X Terminal

Set Network Location in Mac OS X Terminal

networksetup -switchtolocation "location name"

There are some other options, too:

networksetup -getcurrentlocation
networksetup -listlocations
networksetup -createlocation [populate]
networksetup -deletelocation
networksetup -switchtolocation

Source

Leave a Reply

Your email address will not be published. Required fields are marked *