![]() Switch the active location to a location called Work: Networksetup -createlocation Work populate ![]() Obtain the active location the system is using:Ĭreate a network location called Work and populate it with information from the active network connection: ![]() Show a list of locations on the computer: Get information about how en0 got its dhcp on: Ipconfig getoption en0 domain_name_server Same thing, but setting and echoing a variable: After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place.
0 Comments
Leave a Reply. |