{"id":574,"date":"2013-10-08T08:42:23","date_gmt":"2013-10-08T13:42:23","guid":{"rendered":"http:\/\/sites.williams.edu\/lj1\/?p=574"},"modified":"2013-10-08T08:42:23","modified_gmt":"2013-10-08T13:42:23","slug":"mac-turn-wireless-on-or-off-via-command-line","status":"publish","type":"post","link":"https:\/\/sites.williams.edu\/lj1\/labs\/mac-turn-wireless-on-or-off-via-command-line\/","title":{"rendered":"Mac &#8211; Turn wireless on or off via command line"},"content":{"rendered":"<p>To control the network settings with the command line try:<\/p>\n<pre>networksetup -listnetworkserviceorder<\/pre>\n<p>Then:<\/p>\n<p>To display current state of wireless:<\/p>\n<pre>networksetup -getairportpower &lt;device name&gt;<\/pre>\n<p>Or to turn wireless off or on:<\/p>\n<pre>networksetup -setairportpower &lt;device name&gt; &lt;on off&gt;<\/pre>\n<p>For a longer description of these see:<\/p>\n<p><a href=\"http:\/\/reviews.cnet.com\/8301-13727_7-57566448-263\/how-to-adjust-network-settings-in-os-x-via-the-command-line\/\">http:\/\/reviews.cnet.com\/8301-13727_7-57566448-263\/how-to-adjust-network-settings-in-os-x-via-the-command-line\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To control the network settings with the command line try: networksetup -listnetworkserviceorder Then: To display current state of wireless: networksetup -getairportpower &lt;device name&gt; Or to turn wireless off or on: networksetup -setairportpower &lt;device name&gt; &lt;on off&gt; For a longer description &hellip; <a class=\"more-link\" href=\"https:\/\/sites.williams.edu\/lj1\/labs\/mac-turn-wireless-on-or-off-via-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[10086],"tags":[29493,10090,29492],"class_list":["post-574","post","type-post","status-publish","format-standard","hentry","category-labs","tag-command","tag-mac","tag-wireless"],"acf":[],"_links":{"self":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/comments?post=574"}],"version-history":[{"count":2,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/574\/revisions"}],"predecessor-version":[{"id":576,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/posts\/574\/revisions\/576"}],"wp:attachment":[{"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/media?parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/categories?post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.williams.edu\/lj1\/wp-json\/wp\/v2\/tags?post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}